MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / init

Function init

common/version/version.go:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19var profileInfo []byte
20
21func init() {
22 buffer := &bytes.Buffer{}
23 fmt.Fprintf(buffer, "APIPark version: %s\n", Version)
24 fmt.Fprintf(buffer, "Golang version: %s\n", goVersion)
25 fmt.Fprintf(buffer, "Git commit hash: %s\n", gitCommit)
26 fmt.Fprintf(buffer, "Built on: %s\n", BuildTime)
27 fmt.Fprintf(buffer, "Built by: %s\n", buildUser)
28 //fmt.Fprintf(buffer, "Built by eosc version: %s\n", eoscVersion)
29 profileInfo = buffer.Bytes()
30}
31
32func Build() *cli.Command {
33 return &cli.Command{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected