generation

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 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

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

type Options

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

type OutputOptions

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

type PackageOptions

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