Messing around with setting a version string at compile time. The following fails: ``` gvp in go build -v -o my_binary -ldflags '-X main.version foo' ./... ``` But this works: ``` gvp in go build -v -o my_binary -ldflags '-X\ main.version\ foo' ./... ```
Messing around with setting a version string at compile time.
The following fails:
But this works: