code

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindScalar = iota
	KindMap
	KindSlice
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	ShortName string
	Path      string
	Aliased   bool
	Source    *Source
}

type ImportList

type ImportList []*Import

func (ImportList) AssociateByShortName

func (ii ImportList) AssociateByShortName() map[string]*Import

type Interface

type Interface struct {
	Name         string
	MarkerMethod string
	Variants     VariantList
	Pkg          string
}

type InterfaceList

type InterfaceList []*Interface

func (InterfaceList) AssociateByName

func (ii InterfaceList) AssociateByName() map[string]*Interface

type Package

type Package string

func (Package) Dir

func (p Package) Dir() string

func (Package) Name

func (p Package) Name() string

func (Package) Path

func (p Package) Path() string

func (Package) String

func (p Package) String() string

type PolyField

type PolyField struct {
	Name      string
	Tags      string
	Interface *Interface
	Kind      int
	Prefix    string
}

type PolyFieldList

type PolyFieldList []*PolyField

type Source

type Source struct {
	Package    Package
	Interfaces InterfaceList
	Imports    ImportList
}

type SourceList

type SourceList []*Source

func (SourceList) AssociateByPkgName

func (ss SourceList) AssociateByPkgName() map[Package]*Source

type Variant

type Variant struct {
	Name      string
	Fields    PolyFieldList
	Interface *Interface
}

type VariantList

type VariantList []*Variant

func (VariantList) AssociateByVariantName

func (vvs VariantList) AssociateByVariantName() map[string]*Variant

Jump to

Keyboard shortcuts

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