iface

package
v0.0.0-...-fdc3859 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Qualify

func Qualify(pkg *types.Package, imps []Import, usedImps *[]Import) types.Qualifier

func ValidateType

func ValidateType(typ types.Type) bool

Types

type Import

type Import struct {
	Name string
	Path string
}

func (*Import) String

func (i *Import) String() string

type Interface

type Interface struct {
	Name       string
	TypeParams TypeParams
	Package    string
	Imports    []Import
	Methods    Methods
}

func GetInterface

func GetInterface(dir, ifaceName string) (Interface, error)

type Method

type Method struct {
	Name    string
	Params  Params
	Results Results
	// contains filtered or unexported fields
}

type Methods

type Methods []Method

func (Methods) Len

func (m Methods) Len() int

func (Methods) Less

func (m Methods) Less(i, j int) bool

func (Methods) Swap

func (m Methods) Swap(i, j int)

type Param

type Param struct {
	Name     string
	Type     string
	Variadic bool
}

func (*Param) String

func (p *Param) String() string

func (*Param) TypeString

func (p *Param) TypeString() string

type Params

type Params []Param

func (Params) ArgsString

func (ps Params) ArgsString() string

func (Params) NamedString

func (ps Params) NamedString() string

func (Params) String

func (ps Params) String() string

type Result

type Result struct {
	Name string
	Type string
}

func (*Result) String

func (r *Result) String() string

type Results

type Results []Result

func (Results) String

func (rs Results) String() string

type TypeErrors

type TypeErrors struct {
	Errs []packages.Error
}

func (*TypeErrors) Error

func (e *TypeErrors) Error() string

type TypeParam

type TypeParam struct {
	Name       string
	Constraint string
}

func (TypeParam) String

func (t TypeParam) String() string

type TypeParams

type TypeParams []TypeParam

func (TypeParams) Names

func (t TypeParams) Names() string

func (TypeParams) String

func (t TypeParams) String() string

Jump to

Keyboard shortcuts

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