Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode narg input r into a given struct v. v must be a pointer to the struct you want to decode into.
func EncodeString ¶
EncodeString encodes the given value as a string.
func Fuzz ¶
Fuzz is exposed only for internal use with go-fuzz: https://github.com/dvyukov/go-fuzz
Corpus resides in test-fixtures/fuzz/corpus
go get github.com/dvyukov/go-fuzz/go-fuzz go get github.com/dvyukov/go-fuzz/go-fuzz-build go-fuzz-build github.com/nochso/narg go-fuzz -bin narg-fuzz.zip -workdir test-fixtures/fuzz
Types ¶
type Item ¶
Item represents a single block consisting of at least the name.
narg input showing what part of an Item it's parsed into:
Name Args[0] Args[1] { Children[0].Name Children[0].Args[0] }
type ItemSlice ¶
type ItemSlice []Item
ItemSlice is a list of items.
Click to show internal directories.
Click to hide internal directories.