metatype

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func struct {
	Sign     string
	DocLines []string
}

Func gathers a func informations so it can be generated via a go template.

type Interface

type Interface struct {
	Name     string
	DocLines []string
	Embedded []string
	Funcs    []Func
}

Interface gathers an interface informations so it can be generated via a go template.

func (*Interface) AddFunc

func (mi *Interface) AddFunc(f Func)

AddFunc creates a MetaFunc from *doc.Func and appends it to MetaInterface.Funcs.

func (*Interface) EmbedInterface

func (mi *Interface) EmbedInterface(interfaceName string)

EmbedInterface appends interfaceName to MetaInterface.Embedded if not already exists, else it is ignored.

type Var

type Var struct {
	Name, Type, Value string
}

Var gathers a variable informations so it can be generated via a go template.

Jump to

Keyboard shortcuts

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