writer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(data *parser.MockData, qualify bool, export bool) (string, error)

Types

type FuncDef

type FuncDef struct {
	ServiceName  string
	Name         string
	Signature    string
	Return       string
	Args         string
	ReturnValues string
}

func (FuncDef) String

func (fd FuncDef) String() string

type ParamName added in v0.0.5

type ParamName struct {
	IsVararg bool
	// contains filtered or unexported fields
}

func (ParamName) Expand added in v0.0.5

func (pn ParamName) Expand() string

type TemplateData

type TemplateData struct {
	Qualify     bool
	Export      bool
	Package     string
	ServiceName string
	FuncDefs    []*FuncDef
}

Jump to

Keyboard shortcuts

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