Skip to content

Instantly share code, notes, and snippets.

@adg
Created June 29, 2015 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adg/35d2f9d9ed7cae0db5ce to your computer and use it in GitHub Desktop.
Save adg/35d2f9d9ed7cae0db5ce to your computer and use it in GitHub Desktop.
package ex_test
import "fmt"
func ExampleTestExample() {
fmt.Println(` flags.Bool("debug", false, "Turn on debugging.")`)
fmt.Println(` viper.BindPFlag("debug", flags.Lookup("debug"))`)
// Output:
// flags.Bool("debug", false, "Turn on debugging.")
// viper.BindPFlag("debug", flags.Lookup("debug"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment