()
| 24 | } |
| 25 | |
| 26 | func DefaultFilePath() (string, error) { |
| 27 | homeDir, err := homeDir() |
| 28 | |
| 29 | if err != nil { |
| 30 | return "", err |
| 31 | } |
| 32 | |
| 33 | return filepath.Join(homeDir, ".cf", "config.json"), nil |
| 34 | } |
| 35 | |
| 36 | // See: http://stackoverflow.com/questions/7922270/obtain-users-home-directory |
| 37 | // we can't cross compile using cgo and use user.Current() |
no test coverage detected