()
| 9 | ) |
| 10 | |
| 11 | func getGlobalConfigPath() (string, error) { |
| 12 | home, err := os.UserHomeDir() |
| 13 | if err != nil { |
| 14 | return "", err |
| 15 | } |
| 16 | return filepath.Join(home, GLOBAL_CONFIG_FILE), nil |
| 17 | } |
| 18 | |
| 19 | func LoadGlobalConfig() Config { |
| 20 | cfg := GetDefaultConfig() |
no outgoing calls
no test coverage detected