Merge pull request #24717 from icaoweiwei/patch_2016-07-16_1

Add output of integer argument
This commit is contained in:
Michael Crosby 2016-08-12 10:54:01 -07:00 committed by GitHub
commit 2c50035f93

View file

@ -30,6 +30,7 @@ func main() {
fmt.Printf("s/#hidden/-string: %s\n", str)
fmt.Printf("b: %t\n", b)
fmt.Printf("-bool: %t\n", b2)
fmt.Printf("-integer/-number: %d\n", i)
fmt.Printf("s/#hidden/-string(via lookup): %s\n", flag.Lookup("s").Value.String())
fmt.Printf("ARGS: %v\n", flag.Args())
}