Skip to content

Instantly share code, notes, and snippets.

@gsavovski
Created October 29, 2014 20:10
Show Gist options
  • Save gsavovski/c214832e23b6c00af43d to your computer and use it in GitHub Desktop.
Save gsavovski/c214832e23b6c00af43d to your computer and use it in GitHub Desktop.
Conditionally build a package only matching the test flag from the command line
// +build test
package eventspipeline
import "fmt"
import . "go/build"
func init() {
fmt.Println(Default)
fmt.Println(Default)
fmt.Println(Default)
}
func SetLogger() {
eventsPipeline = 1234
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment