parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceSpec

func GetInterfaceSpec(f *ast.File, target string) (*ast.TypeSpec, error)

Types

type MockData

type MockData struct {
	PackageName   string
	InterfaceName string
	MethodFields  []*ast.Field
}

func Parse

func Parse(srcFile string, src interface{}, target string) (*MockData, error)

Jump to

Keyboard shortcuts

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