internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name     string
	Type     string
	Comments []string
	Init     bool // the field is initialized in constructor
	Get      bool // the field has getter
	Set      bool // the field has sette
}

Field is a field of Struct

type File

type File struct {
	PkgName string
	Structs []Struct
	Imports map[string]string // map[import_path]local_name
}

File is a Go file.

type Parser

type Parser struct {
	EnabledTag bool
}

func (Parser) Parse

func (p Parser) Parse(src string) (File, error)

type Struct

type Struct struct {
	Name   string
	Fields []Field
}

Struct is a Go struct

type Writer

type Writer struct{}

func (Writer) Write

func (w Writer) Write(f File, dst string) error

Jump to

Keyboard shortcuts

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