gbuild
少于1分钟
原文:https://pkg.go.dev/github.com/gogf/gf/v2@v2.6.4/os/gbuild
Package gbuild manages the build-in variables from “gf build”.
软件包 gbuild 管理来自 “gf build” 的内置变量。
常量
|
|
变量
This section is empty.
函数
func Data
|
|
Data returns the custom build-in variables as map.
数据以 map 的形式返回自定义内置变量。
func Get
|
|
Get retrieves and returns the build-in binary variable with given name.
Get 检索并返回具有给定名称的内置二进制变量。
类型
type BuildInfo
|
|
BuildInfo maintains the built info of current binary.
BuildInfo 维护当前二进制文件的构建信息。
func Info
|
|
Info returns the basic built information of the binary as map. Note that it should be used with gf-cli tool “gf build”, which automatically injects necessary information into the binary.
Info 以 map 的形式返回二进制文件的基本构建信息。请注意,它应该与 gf-cli 工具“gf build”一起使用,它会自动将必要的信息注入到二进制文件中。