goutil
argparse
goutil | argparse | |
---|---|---|
11 | 2 | |
1,824 | 589 | |
1.8% | - | |
8.9 | 0.0 | |
11 days ago | over 1 year ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goutil
-
Release v0.6.10 · gookit/goutil - 💪 Helper Utils(700+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more.
:sparkles: feat: testutil - add new pkg fakeobj for create fake objects https://github.com/gookit/goutil/commit/f410329061791e9378ee7db8da40d2af25bec827
-
Release v0.6.8 · gookit/goutil
We just released a new version of our library! 🎉 It includes fixes and several new features, including PathMatch, MatchNodePath for string path matching; ResolvePath() and IsAbsPath(); ToAbsPath(); SearchNameUp(), VarReplacer support NotFound handler & default value; basic-auth build; EachAnyMap. Check it out now on GitHub: https://github.com/gookit/goutil #newrelease #opensource
-
GO tool library goutil released v0.6.4
gookit/goutil - 💪 Helper Utils For Go: int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more.
- Release v0.6.1 · gookit/goutil
-
How to wrap the error best?
gookit/goutil/errorx provide an enhanced error implements for go, allow with stacktraces and wrap another error.
- Question: Custom argument parsing with flag ?
-
gookit/goutil - Useful utils package for the Go
More utils and usage please see README https://github.com/gookit/goutil/blob/master/README.md
argparse
-
Question: Custom argument parsing with flag ?
Nice to find that golang has this tool (I found only argparse adaptation https://github.com/akamensky/argparse). For me, as newcomer, flag is soooo basic. The reason why I still stick with it, because standard approach is more important for my use case, which is one layer upper than single language best parser. I am doing the same thing for various languages to make argument parsing be as easy as configuration change (if you are curious see https://github.com/ashlander/protoargs). That does not exclude potential Kong usage as an alternative backend at some point
- akamensky/argparse: Argparse for Golang. Just because "flag" sucks!
What are some alternatives?
protoargs - Code generated C++11/Python/Rust/Go command line arguments parser, based on protobuf configuration
go-arg - Struct-based argument parsing in Go
exfatprogs - exFAT filesystem userspace utilities
cobra - A Commander for modern Go CLI interactions
dot - Dot: A powerful Go package simplifying navigation and manipulation of complex data structures via dot-separated paths. Features include insertion into struct fields, maps, arrays, slices, and channels, along with robust error handling and support for diverse map keys.
go-flags - go command line option parser
go-httpheader - A Go library for encoding structs into Header fields.
docopt.go - A command-line arguments parser that will make you smile.
slicer - Utility class for handling slices
Dnote - A simple command line notebook for programmers
go-baseutils - Basic tool set for go 1.18 + generics
pflag - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.