I have seen the following command to set build version
go build -ldflags "-X main.minversion `date -u +.%Y%m%d%.H%M%S`" service.go
but I cant get the timestamp part to work on Windows !
I am using go 1.5 with the following arguments...
build -i -ldflags "-X main.SERVER_NAME=MFFP -X main.VERSION=1.0.0 -X main.BUILD_DATE=`date -u +.%Y%m%d%.H%M%S`"
The error is with the date part
Is this error system related? Anyone tried this on Windows?
Thanks!