tpl

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncHead

func FuncHead(dst io.Writer, data HeadData)

func FuncTemplate

func FuncTemplate(dst io.Writer, data FuncData)

func StructTemplate

func StructTemplate(dst io.Writer, data StructData)

Types

type FuncData

type FuncData struct {
	Name          string
	URL           string
	InterfaceName string
	Params        []Param
	Returns       []Param
}

type HeadData

type HeadData struct {
	Line     string
	PkgName  string
	FileName string
}

type Param

type Param struct {
	Key     string
	TypeVal string
	Star    bool
}

type StructData

type StructData struct {
	TypeName string
}

Jump to

Keyboard shortcuts

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