how to pass values to go binary at the build time code example
Example: golang compile with injected variable
go build -ldflags "-X main.InternalVarName=$BASH_VAR_NAME"
go build -ldflags "-X main.InternalVarName=$BASH_VAR_NAME"