field

package
v0.0.0-...-c37bf90 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	Name      string // name of field
	DBName    string // name of field in DB
	TypeName  string // name of type of field
	IsStruct  bool
	IsNumeric bool
	IsTime    bool
	IsString  bool
}

type Field

type Field interface {
	Name() string
	Type() types.Type
	Tag() reflect.StructTag
}

type Info

type Info struct {
	BaseInfo
	IsPointer bool
	// contains filtered or unexported fields
}

func (Info) GetPointed

func (fi Info) GetPointed() Info

type InfoGenerator

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

func NewInfoGenerator

func NewInfoGenerator(pkg *types.Package) *InfoGenerator

func (InfoGenerator) GenFieldInfo

func (g InfoGenerator) GenFieldInfo(f Field) *Info

Jump to

Keyboard shortcuts

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