Documentation
¶
Index ¶
- Constants
- type Args
- type KeywordOpts
- type MultiMap
- func (m MultiMap) Get(s string) []Args
- func (m MultiMap) GetDualArgs(s string) iter.Seq2[string, *string]
- func (m MultiMap) GetIter(s string) iter.Seq[Args]
- func (m MultiMap) GetOne(s string) Args
- func (m MultiMap) GetSingleArgs(s string) iter.Seq[string]
- func (m MultiMap) Has(s string) bool
- func (m MultiMap) Keys() iter.Seq[string]
- type NamedTypeResults
- type Scanner
- type StructResults
Constants ¶
View Source
const ( ArgsRequired keywordFlag = 1 << iota DualArgsRequired NoArgs Exclusive // limit usage of the keyword to 1 per instance )
View Source
const ( ScanStruct scanMode = iota ScanField ScanNamedType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeywordOpts ¶
type KeywordOpts map[scanMode]keywordFlag
type NamedTypeResults ¶ added in v0.2.3
type NamedTypeResults struct {
Named MultiMap
}
type Scanner ¶
type Scanner interface {
ScanStruct(parser.Struct) (StructResults, error)
ScanNamedType(parser.NamedType) (NamedTypeResults, error)
}
func NewScanner ¶
func NewScanner(keywords map[string]KeywordOpts) Scanner
type StructResults ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.