MCPcopy Create free account
hub / github.com/cloudtty/cloudtty / Get

Function Get

pkg/version/version.go:26–36  ·  view source on GitHub ↗

Get returns the overall codebase version. It's for detecting what code a binary was built from.

()

Source from the content-addressed store, hash-verified

24// Get returns the overall codebase version. It's for detecting
25// what code a binary was built from.
26func Get() Info {
27 return Info{
28 GitVersion: gitVersion,
29 GitCommit: gitCommit,
30 GitTreeState: gitTreeState,
31 BuildDate: buildDate,
32 GoVersion: runtime.Version(),
33 Compiler: runtime.Compiler,
34 Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH),
35 }
36}

Callers 2

NewCmdVersionFunction · 0.92
RunFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected