Created
October 29, 2014 20:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +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