Merge pull request #24717 from icaoweiwei/patch_2016-07-16_1
Add output of integer argument
This commit is contained in:
commit
2c50035f93
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue