astutils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImportPath

func GetImportPath(file string) string

func GetMod

func GetMod() string

func Visit

func Visit(files *[]string) filepath.WalkFunc

Types

type FieldMeta

type FieldMeta struct {
	Name     string
	Type     string
	Tag      string
	Comments []string
}

type PackageMeta

type PackageMeta struct {
	Name string
}

type StructCollector

type StructCollector struct {
	Structs []StructMeta
	Package PackageMeta
}

func (*StructCollector) Collect

func (sc *StructCollector) Collect(n ast.Node) ast.Visitor

func (*StructCollector) FlatEmbed

func (sc *StructCollector) FlatEmbed() []StructMeta

func (*StructCollector) Visit

func (sc *StructCollector) Visit(n ast.Node) ast.Visitor

type StructMeta

type StructMeta struct {
	Name     string
	Fields   []FieldMeta
	Comments []string
}

Jump to

Keyboard shortcuts

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