MCPcopy Index your code
hub / github.com/kataras/iris / homeConfigurationFilename

Function homeConfigurationFilename

configuration.go:29–31  ·  view source on GitHub ↗

homeConfigurationFilename returns the physical location of the global configuration(yaml or toml) file. This is useful when we run multiple iris servers that share the same configuration, even with custom values at its "Other" field. It will return a file location which targets to $HOME or %HOMEDRIV

(ext string)

Source from the content-addressed store, hash-verified

27// It will return a file location
28// which targets to $HOME or %HOMEDRIVE%+%HOMEPATH% + "iris" + the given "ext".
29func homeConfigurationFilename(ext string) string {
30 return filepath.Join(homeDir(), "iris"+ext)
31}
32
33func homeDir() (home string) {
34 u, err := user.Current()

Callers 4

TestConfigurationGlobalFunction · 0.85
YAMLFunction · 0.85
TOMLFunction · 0.85

Calls 1

homeDirFunction · 0.85

Tested by 2

TestConfigurationGlobalFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…