flint

package
v2.0.0-...-5265698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL