version

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func String

func String() string

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

func (i Info) JSONString() (string, error)

JSONString returns the JSON-encoded representation of Info, indented for human readability.

func (Info) String added in v0.20.0

func (i Info) String() string

String returns the human-readable representation of Info as a tab-aligned key-value block.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL