Hi Gophers, I am trying to version my go application with the timestamp of the build. (e.g) (windows) go build -ldflags "-X main.buildVersion=`getTimestamp.exe`" main.go (Linux) go build -ldflags "-X main.buildVersion=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" main.go
But I cannot set the output of getTimestamp.exe to the variable in windows. Can anyone help me? -- 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. For more options, visit https://groups.google.com/d/optout.