generation

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ifaces []*types.Interface, opts *Options) error

Types

type ContentOptions added in v1.3.2

type ContentOptions struct {
	PkgName           string
	OutputImportPath  string
	Prefix            string
	ConstructorPrefix string
	FilePrefix        string
}

type Options

type Options struct {
	PackageOptions []PackageOptions
	OutputOptions  OutputOptions
	ContentOptions ContentOptions
}

type OutputOptions added in v1.3.2

type OutputOptions struct {
	OutputFilename    string
	OutputDir         string
	Force             bool
	DisableFormatting bool
	GoImportsBinary   string
	ForTest           bool
}

type PackageOptions added in v1.3.2

type PackageOptions struct {
	ImportPaths []string
	Interfaces  []string
	Exclude     []string
	Prefix      string
}

Jump to

Keyboard shortcuts

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