embed version in binary

This commit is contained in:
Hayden 2022-09-13 20:06:07 -08:00
parent ca36e3b080
commit 0b92d57b85
10 changed files with 87 additions and 9 deletions

View file

@ -14,6 +14,12 @@ import (
"github.com/rs/zerolog/log"
)
var (
Version = "0.1.0"
Commit = "HEAD"
BuildTime = "now"
)
// @title Go API Templates
// @version 1.0
// @description This is a simple Rest API Server Template that implements some basic User and Authentication patterns to help you get started and bootstrap your next project!.