Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"     // e.g. v0.1.0 or git describe
	Commit  = "none"    // short sha
	Date    = "unknown" // build time, UTC
)

Set via -ldflags; fallbacks if VCS stamping is unavailable.

Functions

func Full

func Full() string

Types

type VCSInfo

type VCSInfo struct {
	System   string // "git"
	Revision string // full sha
	Time     string // RFC3339 commit time
	Modified string // "true"/"false"
}

func ReadVCS

func ReadVCS() (v VCSInfo, ok bool)

Jump to

Keyboard shortcuts

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