parsing

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Name     string
	Type     types.Type
	Variadic bool
	Package  string
}

func NewArgument

func NewArgument(v *types.Var, variadic bool) Argument

type Fake

type Fake struct {
	Imports   []Import
	Interface Interface
}

func Parse

func Parse(path, name string) (Fake, error)

type Import

type Import struct {
	Name string
	Path string
}

type Interface

type Interface struct {
	Name       string
	Signatures []Signature
}

func NewInterface

func NewInterface(n *types.Named) (Interface, error)

type Signature

type Signature struct {
	Name    string
	Params  []Argument
	Results []Argument
}

func NewSignature

func NewSignature(f *types.Func) Signature

Jump to

Keyboard shortcuts

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