Files
cow/config_unix.go
Chen Yufei f1fd6afbe1 Implement #328, allow specifying stat/blocked etc. in config file.
Also load stat/blocked/direct default from directory containing config file.
2015-06-03 00:41:34 +08:00

21 lines
303 B
Go

// +build darwin freebsd linux netbsd openbsd
package main
import (
"path"
)
const (
rcFname = "rc"
blockedFname = "blocked"
directFname = "direct"
statFname = "stat"
newLine = "\n"
)
func getDefaultRcFile() string {
return path.Join(path.Join(getUserHomeDir(), ".cow", rcFname))
}