package main
import . "fmt"
var foo = "not injected"
func main() {
Println(foo)
}
$ go run main.go
not injected
$ go run -ldflags "-X main.foo=injected" main.go
injected
We're a place where coders share, stay up-to-date and grow their careers.
For further actions, you may consider blocking this person and/or reporting abuse
Jacob Kim -
Nemwel Onsando -
rahul-yr -
Chris Noring -
Once suspended, clavinjune will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, clavinjune will be able to comment and publish posts again.
Once unpublished, all posts by clavinjune will become hidden and only accessible to themselves.
If clavinjune is not suspended, they can still re-publish their posts from their dashboard.
Discussion (0)