Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStruct ¶
func ParseStruct[T any](p *bargle.Parser, s *T)
Processes defaults and parses stuff in the struct per flint's implementation. I'm not sure how you would mix positionals external to the struct with how this does it.
func SetDefaults ¶
func SetDefaults[T any](s *T)
Sets defaults for the type. Probably does other stuff but shouldn't.
Types ¶
type StructParser ¶
type StructParser struct {
// contains filtered or unexported fields
}
func NewStructParser ¶
func NewStructParser(s any, p *bargle.Parser) (ret StructParser)
func (StructParser) ParseOne ¶
func (ps StructParser) ParseOne(p *bargle.Parser) bool
func (StructParser) Run ¶
func (ps StructParser) Run(p *bargle.Parser)
Click to show internal directories.
Click to hide internal directories.