Fix README for proper usage instructions

This commit is contained in:
Vladimir Hodakov 2017-10-27 07:36:15 +05:00
parent b1abee64b9
commit 7f7dc6e2f3

View File

@ -20,6 +20,7 @@ initialize flagger like:
``` ```
flgr = flagger.New(flagger.LoggerInterface(log.New(os.Stdout, "testing logger: ", log.Lshortfile))) flgr = flagger.New(flagger.LoggerInterface(log.New(os.Stdout, "testing logger: ", log.Lshortfile)))
flgr.Initialize()
``` ```
Adding a flag is easy, just fill ``Flag`` structure and pass to ``AddFlag()`` call: Adding a flag is easy, just fill ``Flag`` structure and pass to ``AddFlag()`` call: