writer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 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, opts WriteOpts) (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
}

type WriteOpts added in v1.1.0

type WriteOpts struct {
	Qualify          bool
	Export           bool
	UnnamedSignature bool
}

Jump to

Keyboard shortcuts

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