Skip to content

Commit

Permalink
Sentence restructure and grammar fix (#188)
Browse files Browse the repository at this point in the history
There are helpers function != There are helper functions. Great repo.
  • Loading branch information
mattc41190 authored and eparis committed Oct 24, 2018
1 parent 298182f commit b5e1a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ fmt.Println("ip has value ", *ip)
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 flag pointers in your code.
There are helper functions available to get the value stored in a Flag if you have a FlagSet but find
it difficult to keep up with all of the 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.
Expand Down

0 comments on commit b5e1a80

Please sign in to comment.