Last active
March 8, 2022 19:23
-
-
Save percybolmer/c44217a95bba571f8fe14dd72040bf9d to your computer and use it in GitHub Desktop.
LD flags with the new build package in the main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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