visitors

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type string
}

Field represents a field in a struct

type StructAttributeHolders

type StructAttributeHolders struct {
	StructHolder annotations.AnnotationHolder
	FieldHolders map[string]*annotations.AnnotationHolder
}

type StructInfo

type StructInfo struct {
	Name   string
	Fields []Field
}

StructInfo represents a struct with its fields

type TypeVisitor

type TypeVisitor struct {
	// contains filtered or unexported fields
}

func NewTypeVisitor

func NewTypeVisitor(packages []*packages.Package) *TypeVisitor

func (*TypeVisitor) GetStructs

func (v *TypeVisitor) GetStructs() []definitions.ModelMetadata

GetStructs returns the list of processed structs.

func (*TypeVisitor) VisitStruct

func (v *TypeVisitor) VisitStruct(fullPackageName string, structName string, structType *types.Struct) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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