buildinfo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package buildinfo 存放编译期注入的版本信息。 这些变量通过 -ldflags '-X ...=value' 在 Makefile 构建时注入; 缺省值用于 `go run` / 直接 `go build` 的开发场景。

Index

Constants

View Source
const AppName = "dbm-cli"

AppName 工具名,用于 help / manifest 输出。

Variables

View Source
var Commit = "unknown"

Commit 枥简哈希。默认 unknown,正式构建由 Makefile 注入。

View Source
var Version = "dev"

Version 工具版本号。默认 dev,正式构建由 Makefile 注入 git tag。

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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