mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts *Options) error

Types

type FuncSig

type FuncSig struct {
	FuncName string
	Return   string
}

type Options

type Options struct {
	BaseDir        string
	SearchPackages string
	PackageName    string
	OutputDir      string

	ClientDefault bool
	Writer        io.Writer
}

type PackageInfo

type PackageInfo struct {
	Path     string
	Name     string
	FuncSigs []FuncSig
}

type TemplateData

type TemplateData struct {
	ClientDefault bool
	PackageName   string
	Middlewares   []PackageInfo
}

Jump to

Keyboard shortcuts

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