generator

package
v0.0.0-...-c37dd20 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(rootDir string, pkgDirs map[DirPath]Interfaces, mocksDir string) error

Types

type DirPath

type DirPath = string

type Interfaces

type Interfaces struct {
	IncludeInterfaces    bool
	InterfacesExceptions map[string]struct{}
}

type TupleFormats

type TupleFormats struct {
	Args                  string
	ArgedArgs             string
	RawParams             string
	NamedParams           string
	NamedArgedParams      string
	VariadicArgs          string
	VariadicArgsEval      string
	VariadicArgedArgsEval string
}

type TupleFormatter

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

func NewTupleFormatter

func NewTupleFormatter(tuple *types.Tuple, isVariadic bool, pkgQualifier func(pkg *types.Package) string) *TupleFormatter

func (TupleFormatter) Format

func (tf TupleFormatter) Format(prefixForUnnamed string, forbiddenNames map[string]struct{}) TupleFormats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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