metadata

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG = false
View Source
var ErrNotFound = fmt.Errorf("not found")

ErrNotFound is the error metadata is not found.

View Source
var ErrNotSupported = fmt.Errorf("not supported")

ErrNotSupported is the error metadata is not supported, yet

Functions

This section is empty.

Types

type Func

type Func struct {
	Raw  *collect.Func
	Recv string
	// contains filtered or unexported fields
}

func (*Func) Args

func (m *Func) Args() []Var

func (*Func) Doc

func (m *Func) Doc() string

func (*Func) Fullname

func (m *Func) Fullname() string

func (*Func) Name

func (m *Func) Name() string

func (*Func) Returns

func (m *Func) Returns() []Var

type Lookup

type Lookup struct {
	Fset *token.FileSet

	IncludeGoTestFiles bool
	IncludeUnexported  bool
	// contains filtered or unexported fields
}

func NewLookup

func NewLookup(fset *token.FileSet) *Lookup

func (*Lookup) LookupFromFunc

func (l *Lookup) LookupFromFunc(fn interface{}) (*Func, error)

func (*Lookup) LookupFromFuncForPC

func (l *Lookup) LookupFromFuncForPC(pc uintptr) (*Func, error)

func (*Lookup) LookupFromType

func (l *Lookup) LookupFromType(ob interface{}) (*Type, error)

func (*Lookup) LookupFromTypeForReflectType

func (l *Lookup) LookupFromTypeForReflectType(rt reflect.Type) (*Type, error)

type Type

type Type struct {
	Raw *collect.Object
}

func (*Type) Doc

func (s *Type) Doc() string

func (*Type) FieldComments

func (s *Type) FieldComments() map[string]string

func (*Type) Name

func (s *Type) Name() string

type Var

type Var struct {
	Name string
	Doc  string
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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