Merge branch 'master' of ssh://lab.pztrn.name:2222/golibs/flagger

This commit is contained in:
Stanislav Nikitin 2017-12-28 18:53:58 +05:00
commit b764a0fbd8

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: