version

package module
v0.0.0-...-49bb435 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 1 Imported by: 0

README

version

通过导入此模块并使用编译脚本或者Makefile可以在编译的可执行程序中增加版本号和git仓库的分支/标签/提交记录ID

Documentation

Overview

Package version 通过导入此模块并使用编译脚本或者Makefile可以在编译的可执行程序中增加版本号和git仓库的分支/标签/提交记录ID

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version 版本号
	Version = "v0.0.0"
	// GitSHA git提交记录, 使用"git rev-parse HEAD"
	GitSHA = "unknown"
	// GitTag git的标签, 使用"git describe --tags --dirty --always"
	GitTag = "unknown"
	// GitBranch git分支, 使用"git rev-parse --abbrev-ref HEAD"
	GitBranch = "unknown"
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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