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

buildinfo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version 的正式发行值由 Release CI 从不可变 Git Tag 注入。
	// 普通源码构建保持显式开发身份,避免把仓库里的字符串误当成发布版本。
	Version   = "0.0.0-dev"
	Commit    string
	BuildDate string
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"build_date"`
	GoVersion string `json:"go_version"`
	Platform  string `json:"platform"`
}

func Current

func Current() Info

Jump to

Keyboard shortcuts

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