// +build windows package config import ( "os" // "os/exec" "path/filepath" ) var ( editor string = setEditor() fn string = filepath.Join(os.Getenv("LOCALAPPDATA"), configFilename) ) func setEditor() string { e := os.Getenv("EDITOR") if e == "" { return `C:\Program Files\Windows NT\Accessories\wordpad.exe` } return e }