package
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Sep 14, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
goarg
Golang's simple command line argument parser.
Motivation
We develop this parser to develop chat bots.
We implement only minimum functions,
so if you want more functions please use other libraries.
https://github.com/avelino/awesome-go#command-line
If you want to convert a string into words, please see go-chatwords .
Example
See examples .
License
MIT
Documentation
¶
Command represents a command.
Handler represents a handler.
NewHandler returns a handler.
func (*Handler) Match ¶
Match returns arguments of command and whether arguments include match of the handler.
Parser represents a parser.
NewParser returns a parser.
Add adds a handler to the parser.
Parse parses arguments and run the command of matched handler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.