SetDir sets the directory the configuration file is stored in
(dir string)
| 91 | |
| 92 | // SetDir sets the directory the configuration file is stored in |
| 93 | func SetDir(dir string) { |
| 94 | // trigger the sync.Once to synchronise with Dir() |
| 95 | initConfigDir.Do(func() {}) |
| 96 | configDir = filepath.Clean(dir) |
| 97 | } |
| 98 | |
| 99 | // Path returns the path to a file relative to the config dir |
| 100 | func Path(p ...string) (string, error) { |
no outgoing calls
searching dependent graphs…