Commit Graph

4 Commits

Author SHA1 Message Date
Nate Parsons f00d33b57c Use reflect-compatible struct tags in examples 2021-11-23 15:19:08 +11:00
Alec Thomas 60222fe397 Add README + go modules to server example. 2020-01-24 20:02:10 +11:00
Alec Thomas 539214f23e Add contextual information to mapper errors. 2018-07-26 17:45:12 +10:00
Alec Thomas 6408010083 Clean up disparity between Context and Kong.
Previously, there was a confusing mix of functionality shared between
the two wherein you would need to use the Kong type for printing errors,
etc. but it did not have access to the context in order to print
context-sensitive usage information. This has been fixed.

Additionally, there are now fuzzy correction suggestions for flags and
commands

Also added a server example which shows how Kong can be used for parsing
in interactive shells. Run with:

    $ go run ./_examples/server/*.go

Then interact with:

    $ ssh -p 6740 127.0.0.1
2018-06-27 09:11:11 +10:00