mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-05-22 00:22:55 +00:00
inject build info into main during build process
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
@@ -29,7 +29,15 @@ import (
|
||||
flags "github.com/jessevdk/go-flags"
|
||||
)
|
||||
|
||||
// these will be injected during build in build.sh script to allow printing
|
||||
var (
|
||||
Version, Build string
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
log.Println("Goldpinger version:", Version, "build:", Build)
|
||||
|
||||
// load embedded swagger file
|
||||
swaggerSpec, err := loads.Analyzed(restapi.SwaggerJSON, "")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user