list

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenFileSuffix = "_gen_list"
)

生成文件后缀

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

List 列表,解析结构体,生成列表结构体及取列,列映射,列数组映射等方法

func New

func New(p *parser.Parser, t *template.Template) *List

New 新建

func (*List) Parse

func (list *List) Parse(importPath string) error

Parse 解析,对输入的导入路径进行解析,生成需要的结构体和方法,再写到同目录下的特定文件内

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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