initPaths initializes all paths based on the current platform
()
| 24 | |
| 25 | // initPaths initializes all paths based on the current platform |
| 26 | func initPaths() { |
| 27 | pathsOnce.Do(func() { |
| 28 | switch runtime.GOOS { |
| 29 | case "darwin": |
| 30 | initDarwinPaths() |
| 31 | case "windows": |
| 32 | initWindowsPaths() |
| 33 | default: |
| 34 | initLinuxPaths() |
| 35 | } |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | func initDarwinPaths() { |
| 40 | home := os.Getenv("HOME") |
no test coverage detected