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
For further actions, you may consider blocking this person and/or reporting abuse
Harshit Rawat -
Sagar Das -
Jonas Scholz -
TheDev -
Top comments (0)