/goflag

goflag is a simple alternative to golang flag

Primary LanguageGoMIT LicenseMIT

goflag

goflag is a simple alternative to golang flag

Methods

There are only three methods: Var, Parse.

  • Var: Only supports basic types of variables as input parameters, and supports structures with the'flag' tag.
  • Parse: Parses command line parameters and supports reading a json configuration file.