MCPcopy Create free account
hub / github.com/astercloud/aster / initPaths

Function initPaths

pkg/config/paths.go:26–37  ·  view source on GitHub ↗

initPaths initializes all paths based on the current platform

()

Source from the content-addressed store, hash-verified

24
25// initPaths initializes all paths based on the current platform
26func 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
39func initDarwinPaths() {
40 home := os.Getenv("HOME")

Callers 4

ConfigDirFunction · 0.85
DataDirFunction · 0.85
LogDirFunction · 0.85
CacheDirFunction · 0.85

Calls 3

initDarwinPathsFunction · 0.85
initWindowsPathsFunction · 0.85
initLinuxPathsFunction · 0.85

Tested by

no test coverage detected