Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string BuildTime string GitCommit string GitStatus string )
VERSION = $(shell git describe --tags --always) GIT_COMMIT = $(shell git rev-parse --short HEAD) git_tag = $(shell git describe --tags --abbrev=0) git_branch = $(shell git rev-parse --abbrev-ref HEAD) BuildVersion := $(git_branch)_$(git_rev) BuildTime := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ') BuildCommit := $(shell git rev-parse --short HEAD) BuildGoVersion := $(shell go version) git_branch = $(shell git show-ref | grep $(shell git show HEAD | sed -n 1p | cut -d " " -f 2) | sed 's|.* /(.*)|1|' | grep -v HEAD | sort | uniq | head -n 1)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.