mirror of
https://github.com/therootcompany/golib.git
synced 2026-08-09 22:10:24 +00:00
- Use flag.FlagSet with config struct instead of global flag - Add version vars (name, version, commit, date, licenseYear, licenseOwner, licenseType) - Add printVersion() with copyright and license - Handle -V/--version/version/help/-help/--help before fs.Parse - Handle flag.ErrHelp and fs.NArg() > 1 checks
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%