structdescription

package
v0.0.0-...-14190fc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKind

func GetKind(fieldType ast.Expr) (string, error)

func GetSourceFolderPath

func GetSourceFolderPath(p interface{}) string

Types

type StructDescription

type StructDescription interface {
	GetName() string
	GetFields() []StructFieldInfo
	GetDoc() string
	GetFieldByName(name string) StructFieldInfo
}

func GetStructDescription

func GetStructDescription(ref interface{}) (StructDescription, error)

type StructFieldInfo

type StructFieldInfo interface {
	GetName() string
	GetDoc() string
	GetTag() string
	GetKind() string
	LoopkupTagKey(key string) (value string, ok bool)
}

Jump to

Keyboard shortcuts

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