parser

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InterfaceTypeDef = "interface"
	StructTypeDef    = "struct"
	TimeTypeDef      = "time.Time"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StructField

type StructField struct {
	Name string
	Type string
}

StructField 结构体字段

type StructFlat

type StructFlat struct {
	Name   string
	Fields []*StructField
}

StructFlat 非嵌套结构体

func StructParser

func StructParser(src string) (structList []*StructFlat, err error)

StructParser golang struct 解析器

Jump to

Keyboard shortcuts

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