steverusso / goclap Goto Github PK
View Code? Open in Web Editor NEWGenerate command line argument parsing code from Go comments.
License: The Unlicense
Generate command line argument parsing code from Go comments.
License: The Unlicense
To make it additionally obvious that the generated code file is generated, can goclap add a file extension (ex: file.gen.go
)?
As an example, protobuf's generated files have pb
in their name (ex: file.pb.go
).
I like the idea of using comments to get program configuration, but I use environment variables instead of command line arguments. Can goclap support this, similar to env?
Since the examples themselves are programs, they need something to show their example usage.
Since the usage messages are string constants using raw Go strings, any backticks within the content cause the stings to end, and then the code won't compile.
@steverusso I started making a Go Example test here, but goclap doesn't seem to generate the right code if it's outside the main package.
Is this something it could support? I think having testable example would be beneficial for the project!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.