package config import ( "path" ooccp "git.loafle.net/overflow/overflow_commons_go/config/probe" ) var ( ConfigDir *string ConfigFilePath *string EncryptionKey *string Config *ooccp.Config ) func RootDirPath() string { return Config.Paths["root"] } func BinDirPath() string { return path.Join(RootDirPath(), ooccp.PathBin) } func ConfigDirPath() string { return path.Join(RootDirPath(), ooccp.PathConfig) } func JREDirPath() string { return path.Join(RootDirPath(), ooccp.PathJRE) } func JavaBinPath() string { return path.Join(JREDirPath(), "bin", "java") } func LogsDirPath() string { return path.Join(RootDirPath(), ooccp.PathLogs) } func PIDDirPath() string { return path.Join(RootDirPath(), ooccp.PathPID) }