Documentation ¶
Index ¶
- func AnonymousFieldName(expr ast.Expr) string
- func BuildStructTree(structName string, filename string, src interface{}) (*xast.TopNode, error)
- func FullName(expr ast.Expr) string
- func IsSysInnerType(typ string) bool
- func MustOpenAst(filename string, src interface{}, mode parser.Mode) (*token.FileSet, *ast.File)
- func SimpleName(expr ast.Expr) string
- func SystemType(expr ast.Expr) (string, bool)
- func VarType(expr interface{}) string
- func VarValue(expr ast.Expr) (token.Token, string)
- func WalkTypeSpec(ctx context.Context, parentName string, typeSpec ast.Spec, ...)
- type WalkNodeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnonymousFieldName ¶
func BuildStructTree ¶
func IsSysInnerType ¶
func MustOpenAst ¶
func SimpleName ¶
map[string]Foo parse to Foo, string parse to string
func WalkTypeSpec ¶
Types ¶
type WalkNodeFunc ¶
type WalkNodeFunc func(ctx context.Context, linkName string, leafIdent ast.Expr) (walkContinue bool)
ast parser
func FilterRepeatMiddle ¶
func FilterRepeatMiddle(walkNodeFuncs ...WalkNodeFunc) WalkNodeFunc
func RecycleCheckMiddle ¶
func RecycleCheckMiddle(walkNodeFuncs ...WalkNodeFunc) WalkNodeFunc
Click to show internal directories.
Click to hide internal directories.