generator

package
v0.0.0-...-6bc9318 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg Config) error

Types

type Config

type Config struct {
	TargetPkgDirPath string
	Targets          Targets
	OutPkgName       func(inspectedPkgName string) string
	OutFilePath      string
	OutPublic        bool
	GoGenCmd         string
}

type Targets

type Targets struct {
	Include    bool
	Exceptions map[string]struct{}
}

type TupleFormats

type TupleFormats struct {
	Args                     string
	ArgsMatchers             string
	RawParams                string
	NamedParams              string
	NamedArgedParams         string
	VariadicArgs             string
	VariadicArgsEval         string
	VariadicArgsMatchersEval 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