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