ver

package module
v0.0.0-...-8ac671f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 1 Imported by: 14

README

ver

  1. 提供统一的 go 工程构建的 Makefile
  2. 提供统一的版本号信息
# 变量名称 变量含义
1 GitCommit Git 提交信息
2 BuildTime 构建时间
3 BuildHost 构建机器名称
4 BuildIP 构建机器 IP
5 BuildCI 构建的 CI 信息,e.g. Javis_V1.0.0_BuiltID_20240813.131
6 GoVersion 构建 go版本号
7 AppVersion 应用版本号

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitCommit Git 提交信息
	GitCommit = ""
	// BuildTime 构建时间
	BuildTime = ""
	// BuildHost 构建机器名称
	BuildHost = ""
	// BuildIP 构建机器 IP
	BuildIP = ""
	// BuildCI 构建的 CI 信息,e.g. Javis_V1.0.0_BuiltID_20240813.131
	BuildCI = ""
	// GoVersion 构建 go版本号
	GoVersion = ""
	// AppVersion 应用版本号
	AppVersion = "1.0.0"

	// RepoPath gitlab 仓库地址路径
	// 1. HTTP: http://192.168.131.1/develop/FOOTSTONE/bsf/Code/msp-api-gateway.git
	// 2. Git: [email protected]:develop/FOOTSTONE/bsf/Code/msp-api-gateway.git
	// 路径皆为: /develop/FOOTSTONE/bsf/Code/msp-api-gateway.git
	RepoPath = "Unset"
)

Functions

func Version

func Version() string

Version returns the full version information for the application.

Types

This section is empty.

Directories

Path Synopsis
cmd
ver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳