1 Star 3 Fork 1

古丞秋/uymas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uymas.go 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
古丞秋 提交于 2024-10-20 09:16 +08:00 . doc: 1.4.2 push
// Package uymas is summary util library from the work experience,
// provides base version, author information and so on.
//
// Major functional like `bin` (CLI-APP), `str`(string util), other more. Some of originated from work experience
// to enhance code reuse.
// The final directory is a convenient tool to realize command-line program development and other code.
package uymas
// @Date: 2018/10/30 0030 12:58
// @Author: Joshua Conero
const (
Version = "1.4.2" // dev is not product but development tag.
Release = "20241020" // dev|20060102
Since = "20181030"
Author = "Joshua Conero"
Email = "conero@163.com"
Name = "uymas"
PkgName = "conero/uymas"
TimeLayoutDate = "20060102" // date layout-20060102
)
// Data for injection
// # go build -ldflags "-s -w -X 'gitee.com/conero/uymas.gitHash=$gitHash' -X 'gitee.com/conero/uymas.buildData=$buildData' -X 'gitee.com/conero/uymas.buildAuthor=$buildAuthor'" ./cmd/...
var (
gitHash string
buildData string
buildAuthor string
)
func GetBuildInfo() string {
info := ""
if gitHash != "" && buildData != "" {
info = "(" + buildData + " " + gitHash + ")"
}
if buildAuthor != "" {
if info != "" {
info += " "
}
info += "Power by " + buildAuthor
}
return info
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/conero/uymas.git
git@gitee.com:conero/uymas.git
conero
uymas
uymas
v1.4.2

搜索帮助