Documentation
¶
Index ¶
Constants ¶
View Source
const ( WebsiteURL = "https://uncloud.run" DocsURL = "https://uncloud.run/docs" DiscordURL = "https://uncloud.run/discord" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶ added in v0.20.0
type Info struct {
Version string
GitCommit string
GitState string
BuildDate string
BuiltBy string
GoVersion string
Platform string
}
Info holds version and build metadata for an Uncloud binary.
func GetInfo ¶ added in v0.20.0
func GetInfo() Info
GetInfo returns version and build metadata for the current binary. Values injected at build time via -ldflags take precedence over the runtime/debug.BuildInfo fields.
func (Info) JSONString ¶ added in v0.20.0
JSONString returns the JSON-encoded representation of Info, indented for human readability.
Click to show internal directories.
Click to hide internal directories.