MCPcopy Index your code
hub / github.com/foxcpp/maddy / BuildInfo

Function BuildInfo

maddy.go:89–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87)
88
89func BuildInfo() string {
90 version := Version
91 if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "(devel)" {
92 version = info.Main.Version
93 }
94
95 return fmt.Sprintf(`%s %s/%s %s
96
97default config: %s
98default state_dir: %s
99default runtime_dir: %s`,
100 version, runtime.GOOS, runtime.GOARCH, runtime.Version(),
101 filepath.Join(ConfigDirectory, "maddy.conf"),
102 DefaultStateDirectory,
103 DefaultRuntimeDirectory)
104}
105
106func init() {
107 maddycli.AddGlobalFlag(

Callers 2

initFunction · 0.85
RunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected