go run command-line-arguments -X definition add string value definition of the form importpath.name=value
I used to use this to override my variable values, in the form of go run -ldflags="-X main.var1=val1 main.var2=val2" Now, the new problem is that I need to have space in the string value definition. How can I do that please? I've tried both the following cases: go run -ldflags="-X main.var1='val 1' main.var2=\"val 2\"" but neither is working. Please help -- 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/7d1e2b06-dce9-4e46-b20b-fe5a3663038en%40googlegroups.com.