protoargs
goutil
protoargs | goutil | |
---|---|---|
7 | 11 | |
7 | 1,824 | |
- | 1.8% | |
1.3 | 8.9 | |
about 1 year ago | 12 days ago | |
Python | Go | |
BSD 2-clause "Simplified" 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.
protoargs
-
Protoargs: configuration based arguments parsing
Go implementation page (how to use in golang) https://github.com/ashlander/protoargs/tree/AZ_golang/doc/go
-
Question: Custom argument parsing with flag ?
More info on how that will look like - https://github.com/ashlander/protoargs May be that would be of interest for you too
-
Configuration based arguments parser on Rust
Documentation https://github.com/ashlander/protoargs/tree/AZ_rust
-
Configuration based arguments parsing
Protoargs script uses arguments parser which is generated by itself. This is the configuration for protoargs script and code generated arguments parser.
-
Configuration based argument parsing
That's how protoargs project appeared. Which converts special protobuf configuration into a ready-to-use arguments parser. And I do use it a lot in my projects. The best example was to use it in multiple commands CLI , e.g. you can implement your own "git init/clone/commit/..." easily. And protobuf allows preserving compatibility between versions. Recently I have used it inside gamedev project with a potentially huge number of commands, and now it takes me 5-10 min for new command to be added, and ~0 min to add new arguments to existing command and start using them in the code.
-
My Gamedev Yak Shaving. Part 3. Yarn Spinner and custom commands parsing?
I have added the project to github, so anyone could use it, called protoargs . It supports C++ and Python, but there are plans to add more programming languages, so to make arguments parsing you would need only learn how to create a configuration. When I will have enough karma points I would make a post in the opensource subreddit.
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
What are some alternatives?
docopt-ng - Humane command line arguments parser. Now with maintenance, typehints, and complete test coverage.
argparse - Argparse for golang. Just because `flag` sucks
jarro2783/cxxopts - Lightweight C++ command line option parser
exfatprogs - exFAT filesystem userspace utilities
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.
placeholder-image-generator - A small python tool that generates placeholder images with specific dimensions and color
go-httpheader - A Go library for encoding structs into Header fields.
Protobuf - Protocol Buffers - Google's data interchange format
slicer - Utility class for handling slices
shodohflo - Pure Python netflow and DNS correlation, with reusable Frame Streams, DnsTap and Protobuf implementations
go-baseutils - Basic tool set for go 1.18 + generics