diff options
| author | Jake Worth <[email protected]> | 2015-12-23 11:56:28 -0500 |
|---|---|---|
| committer | Steve Francia <[email protected]> | 2016-04-27 12:09:43 -0400 |
| commit | 74a7afd606b18f37c1626a645906bc1a9e75007d (patch) | |
| tree | 504e59d55b872031dd46aa73471e19f24e46ddee | |
| parent | 8f6a28b0916586e7f22fe931ae2fcfc380b1c0e6 (diff) | |
Fix a typo in README
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ fmt.Println("flagvar has value ", flagvar) ``` There are helpers function to get values later if you have the FlagSet but -it was difficult to keep up with all of the the flag pointers in your code. +it was difficult to keep up with all of the flag pointers in your code. If you have a pflag.FlagSet with a flag called 'flagname' of type int you can use GetInt() to get the int value. But notice that 'flagname' must exist and it must be an int. GetString("flagname") will fail. |
