peco.peco/config_posix.go
Daisuke Maki 73473f0201 golint
2014-07-23 18:12:50 +09:00

18 lines
236 B
Go

// +build !darwin,!windows
package peco
import (
"fmt"
"os"
)
func homedir() (string, error) {
home := os.Getenv("HOME")
if home == "" {
return "", fmt.Errorf("error: Environment variable HOME not set")
}
return home, nil
}