Categorygithub.com/nyogjtrc/go-ver
modulepackage
0.1.0
Repository: https://github.com/nyogjtrc/go-ver.git
Documentation: pkg.go.dev

# README

go-ver

application version in golang

go build command example

$ go build -v -ldflags "-X github.com/nyogjtrc/go-ver.Version=$(git describe --tags --dirty --match 'v*' || echo 'dev') \
    -X github.com/nyogjtrc/go-ver.BuildTime=$(date +%Y/%m/%dT%H:%M:%S) \
    -X github.com/nyogjtrc/go-ver.Commit=$(git rev-parse --short HEAD) ./main.go"

# Functions

Maps of version info.
Print version info.
No description provided by the author
Router for gin.

# Variables

Version info default as unknown will overwrite by ldflags.
Version info default as unknown will overwrite by ldflags.
Version info default as unknown will overwrite by ldflags.