Branch: refs/heads/master
Home: https://github.com/conformal/btcutil
Commit: fcf9b83256cce165664c1361ba2540dc5a6908b7
https://github.com/conformal/btcutil/commit/fcf9b83256cce165664c1361ba2540dc5a6908b7
Author: Dave Collins <[email protected]>
Date: 2013-11-11 (Mon, 11 Nov 2013)
Changed paths:
A appdata.go
A appdata_test.go
M internal_test.go
Log Message:
-----------
Add new AppDataDir function.
This commit adds a new AppDataDir function that can be used to get an
operating system and application specific directory to be used for storing
application data.
For example:
dir := AppDataDir("myapp", false)
Would result in:
POSIX (Linux/BSD): ~/.myapp
Mac OS: $HOME/Library/Application Support/Myapp
Windows: %LOCALAPPDATA%\Myapp
Plan 9: $home/myapp
This is work toward conformal/btcd#30.