Hi,

When below code is imported as "github.com/mh-cbon/mysuperpackage" by some 
project,

package mysuperpackage

import (
  "whatever"
)

var SomeVariable = ""

Is this build command correct to set the value of SomeVariable ?

go build --ldflags "-X mysuperpackage.SomeVariable=needed"

thanks!

-- 
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.

Reply via email to