builder

package
v0.0.0-...-cb2cec8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamsModel = `
	type %s_Params struct {
		%s
	}
	`
	ResultModel = `
	type %s_Result struct {
		%s
	}
	`
	CallerModelNotReturn = `` /* 212-byte string literal not displayed */

	CallerModelHasReturn = `` /* 275-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type AST

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

func NewAST

func NewAST(f, export string) *AST

func (*AST) Parse

func (a *AST) Parse()

type ExportStruct

type ExportStruct struct {
	A string
}

func (*ExportStruct) FuncA

func (e *ExportStruct) FuncA(a *FuncA_Args, b string, c int)

func (*ExportStruct) FuncB

func (e *ExportStruct) FuncB(b *FuncB_Args, c string, d int)

func (*ExportStruct) FuncC

func (e *ExportStruct) FuncC(c *FuncC_Args)

func (ExportStruct) FuncNotPtr

func (e ExportStruct) FuncNotPtr(c *FuncC_Args)

type Func

type Func struct {
	Name         string
	Params       []string
	Return       []string
	ExportStruct string
	// contains filtered or unexported fields
}

func NewFunc

func NewFunc(name, export string, params []string, returns []string) *Func

func (*Func) String

func (f *Func) String() string

type FuncA_Args

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

type FuncB_Args

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

type FuncC_Args

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

type NotExportStruct

type NotExportStruct struct {
	B string
}

func (NotExportStruct) FuncNotPtr

func (n NotExportStruct) FuncNotPtr(c *FuncC_Args)

func (*NotExportStruct) FuncPtr

func (n *NotExportStruct) FuncPtr(c *FuncC_Args)

Jump to

Keyboard shortcuts

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