INNER CODE UNIT · Go

configSearchPaths

casosorg/casos · conf/build_embed.go:73

func configSearchPaths() []string {
	var paths []string
	if workingDir, err := os.Getwd(); err == nil {
		paths = append(paths, filepath.Join(workingDir, "conf", "app.conf"))
	}
	if executable, err := os.Executable(); err == nil {
		paths = append(paths, filepath.Join(filepath.Dir(executable), "conf", "app.conf"))
	}
	return paths
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…