types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	Alias *string
	Path  string
}

type Registry

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

func NewRegistry

func NewRegistry(pkg *packages.Package) *Registry

func (*Registry) Imports

func (r *Registry) Imports() []*Type

func (*Registry) Resolve

func (r *Registry) Resolve(fieldType types.Type) (pointer string, unwrappedType string, _ error)

type Type

type Type struct {
	Alias *string
	Name  string
	Path  string
}

func (*Type) UniqueValue

func (t *Type) UniqueValue() any

Jump to

Keyboard shortcuts

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