[go-nuts] Re: `go test` does not honor -ldflags

2017-03-12 Thread marcus.low via golang-nuts
My apologies, I did not realise my work signature would automatically be added. -- -- *Grab is hiring. Learn more at **https://grab.careers * By

[go-nuts] Re: `go test` does not honor -ldflags

2017-03-10 Thread marcus.low via golang-nuts
Actually, you can do $ go test -v -ldflags="-X import/path/to/main.test.MyVar=hello" -- -- *Grab is hiring. Learn more at **https://grab.careers