v0.0.0-...-216eb11 Latest Latest

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Field

type Field struct {
	Name  string
	Type  string
	Ptr   bool
	Slice Slice
	Map   Map

type Linker

type Linker struct{}

func NewLinker

func NewLinker() Linker
func (l Linker) Link(m map[string]Struct, interfaceToStruct map[string][]string)

type Map

type Map struct {
	IsMap bool

type PackageParser

type PackageParser struct {
	// contains filtered or unexported fields

func NewPackageParser

func NewPackageParser(s StructParser) PackageParser

func (PackageParser) Parse

func (p PackageParser) Parse(packagePath, gopath string) (map[string]Struct, error)

type Slice

type Slice struct {
	IsSlice     bool
	IsBasicType bool
	FieldName   string

type Struct

type Struct struct {
	Name                string
	Fields              []Field
	PeerTypeFields      []Field
	InterfaceTypeFields map[Field][]string

type StructFetcher

type StructFetcher struct {
	// contains filtered or unexported fields

func NewStructFetcher

func NewStructFetcher(blacklist map[string][]string, knownTypes, sliceTypes map[string]string) StructFetcher

func (StructFetcher) Parse

func (f StructFetcher) Parse(n ast.Node) ([]Struct, error)

type StructParser

type StructParser interface {
	Parse(n ast.Node) ([]Struct, error)

Jump to

Keyboard shortcuts

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