peco.peco/config_posix.go
Daisuke Maki f569d8fbb2 Add comma
2014-06-26 12:49:24 +09:00

17 lines
228 B
Go

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