xtypes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package xtypes provides `go/types` extended utilities. for example, converting `types.Type` into `reflect.Type`.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUntyped error
	ErrUntyped = errors.New("untyped type")
	// ErrUnknownArrayLen error
	ErrUnknownArrayLen = errors.New("unknown array length")
)

Functions

func ToType

func ToType(typ types.Type, ctx GoTypeFinder) (reflect.Type, error)

ToType converts a types.Type to reflect.Type.

Types

type GoTypeFinder

type GoTypeFinder interface {
	FindGoType(pkgPath string, namedType string) (reflect.Type, bool)
}

GoTypeFinder interface

Jump to

Keyboard shortcuts

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