generate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("generate: not found")

ErrNotFound ...

Functions

func LoadAndGenerate

func LoadAndGenerate(w io.Writer, pattern string, interfaceNames []string, options ...Option) error

LoadAndGenerate ...

Types

type FindResult

type FindResult struct {
	SrcPkgName  string
	DestPkgPath string
}

FindResult ...

func FindPackage

func FindPackage(filePath string, pkgName string) (FindResult, error)

FindPackage ...

type Option

type Option func(conf *generateConfig)

Option ...

func WithInAnotherPackage

func WithInAnotherPackage(packageName string) Option

WithInAnotherPackage ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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