Documentation
¶
Index ¶
- type Definition
- type Definitions
- type Mappings
- func (o *Mappings) AddPair(pair Pair)
- func (o Mappings) FindByExpr(t ast.Expr) (Pair, bool)
- func (o Mappings) FindBySchemaName(name string) (Pair, bool)
- func (o Mappings) FindByStructName(name string) (Pair, bool)
- func (o Mappings) ForEach(cb func(index int, pair Pair) (bool, error)) error
- func (o *Mappings) InspectCallback(node ast.Node) bool
- func (o Mappings) MapFields(list []*ast.Field) map[string]*ast.Field
- type Pair
- type Properties
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definitions ¶
type Mappings ¶
type Mappings struct {
// contains filtered or unexported fields
}
func NewMapping ¶
type Pair ¶
type Pair struct { Object *ast.TypeSpec Definition Definition }
func (Pair) IsSchemaResolved ¶
func (Pair) StructName ¶
type Properties ¶
func MapProperties ¶
func MapProperties(sch *schema.Schema) (Properties, error)
Click to show internal directories.
Click to hide internal directories.