apitest

package
v0.0.0-...-ccd8cf7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncDecl

type FuncDecl struct {
	// contains filtered or unexported fields
}

type Generator

type Generator struct {
	*bytes.Buffer
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(opts ...Option) *Generator

func (*Generator) GenAPITest

func (g *Generator) GenAPITest() error

func (*Generator) P

func (g *Generator) P(str ...string)

func (*Generator) Parse

func (g *Generator) Parse() error

func (*Generator) ParseInfo

func (g *Generator) ParseInfo(info *doc.AstFileInfo, astFile *ast.File) error

type Option

type Option func(*Generator)

func WithLog

func WithLog(log log.Logger) Option

func WithWorkDir

func WithWorkDir(dir string) Option

Jump to

Keyboard shortcuts

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