Skip to content

Instantly share code, notes, and snippets.

@jameinel jameinel/README.md
Created Aug 7, 2014

Embed
What would you like to do?

You can run this with: go build -flags chaos and go build

And then run it (./chaostest)

// +build chaos
package main
var chaos = true
package main
import (
"fmt"
)
func main() {
fmt.Printf("Chaos: %t\n", chaos)
}
// +build !chaos
package main
var chaos = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.