mitchellh / go-homedir

Go library for detecting and expanding the user's home directory without cgo.

Home Page:https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this work on plan9?

ncw opened this issue · comments

I'd like to use this library as one of my users has run into the OSX issue mentioned in the README.

I currently build plan9 binaries - is it likely to work there?

Thanks

Nick

This thread is a little old, but I'd point out

go-homedir/homedir.go

Lines 40 to 45 in df55a15

if runtime.GOOS == "windows" {
result, err = dirWindows()
} else {
// Unix-like system, so just assume Unix
result, err = dirUnix()
}
, and that the answer is probably that yes, this should work pretty well on plan9. 😄

Closing since this seems answered :)