generate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 14 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