Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active March 8, 2022 19:23
Show Gist options
  • Save percybolmer/c44217a95bba571f8fe14dd72040bf9d to your computer and use it in GitHub Desktop.
Save percybolmer/c44217a95bba571f8fe14dd72040bf9d to your computer and use it in GitHub Desktop.
LD flags with the new build package in the main
package main
import (
"log"
"programmingpercy.tech/buildflags/version"
)
var (
runner = "client-1.0.0"
)
func main() {
log.Println("Starting runner", runner, "version", version.Version)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment