parser

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKey      = "foggo"
	IgnoreValue = "-"
)

Variables

This section is empty.

Functions

func CollectFields

func CollectFields(structName string, astFiles []*ast.File) ([]*generator.StructField, int, error)

CollectFields is function to get fields of struct type and index of struct type from ast files

Types

type PackageInfo

type PackageInfo struct {
	Name     string
	AstFiles []*ast.File
	Paths    []string
}

func ParsePackageInfo

func ParsePackageInfo(p string) (*PackageInfo, error)

Jump to

Keyboard shortcuts

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