You could use the Go module support to tie the cli version to the version of your cli module.
The module version can now be optained from the binary via https://godoc.org/runtime/debug#ReadBuildInfo and then in BuildInfo.Module.Version field. Since that is part of the official Go std-library, gccgo probably supports that too. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/55f67405-2c57-4c75-89d9-82717a1ef870o%40googlegroups.com.