diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2020-03-21 08:20:16 +1000 |
|---|---|---|
| committer | James Mills <prologic@shortcircuit.net.au> | 2020-03-21 08:20:16 +1000 |
| commit | d7a1eab5beba4241dab4402c5cd268432d7b46cd (patch) | |
| tree | 6383b4ebf511b58597d827dc5af00b71c72caf38 /version.go | |
| parent | 13ffd7117180d1a3093ff291481caeb07a8b71de (diff) | |
Migrate to Go111Modules, Add Dockerfile and GoRelaser support
Diffstat (limited to 'version.go')
| -rw-r--r-- | version.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/version.go b/version.go new file mode 100644 index 0000000..86587e6 --- /dev/null +++ b/version.go @@ -0,0 +1,18 @@ +package main + +import ( + "fmt" +) + +var ( + // Version release version + Version = "0.0.1" + + // Commit will be overwritten automatically by the build system + Commit = "HEAD" +) + +// FullVersion returns the full version and commit hash +func FullVersion() string { + return fmt.Sprintf("%s@%s", Version, Commit) +} |
