goflag is a simple alternative to golang flag
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.