types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextType *types.Interface

ContextType is the types.Type for the context.Context interface

View Source
var ErrType types.Type

ErrType is the types.Type for the error interface

Functions

func IsContextType

func IsContextType(t types.Type) bool

IsContextType determines if the given type is context.Context

func IsErrorType

func IsErrorType(t types.Type) bool

IsErrorType determines if the given type implements the Error interface

func ToType added in v0.2.0

func ToType(t types.Type, variadic bool) (jen.Code, error)

ToType generates the representation for the given type

Types

This section is empty.

Jump to

Keyboard shortcuts

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