From b5e1a803ebe3b3a3c638b710b4aef53942beb7e3 Mon Sep 17 00:00:00 2001 From: Matthew Cale Date: Wed, 24 Oct 2018 13:59:23 -0500 Subject: Sentence restructure and grammar fix (#188) There are helpers function != There are helper functions. Great repo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b052414..7eacc5b 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3