mirror of https://github.com/perkeep/perkeep.git
Merge branch 'master' of https://camlistore.googlesource.com/camlistore
This commit is contained in:
commit
70d1bfd635
|
@ -36,6 +36,8 @@ func HomeDir() string {
|
|||
return os.Getenv("HOME")
|
||||
}
|
||||
|
||||
// Username returns the current user's username, as
|
||||
// reported by the relevant environment variable.
|
||||
func Username() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
return os.Getenv("USERNAME")
|
||||
|
|
Loading…
Reference in New Issue