Skip to content

Instantly share code, notes, and snippets.

@jameinel jameinel/
Created Aug 7, 2014

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