types

package
v0.0.0-...-44c4718 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TextUnmarshaller is the type of encoding.TextUnmarshaler
	TextUnmarshaller = Unmarshalers[0]

	// BinaryUnmarshaler is the type of encoding.BinaryUnmarshaler
	BinaryUnmarshaler = Unmarshalers[1]

	// JSONUnmarshaler is the type of json.Unmarshaler
	JSONUnmarshaler = Unmarshalers[2]
)

Custom is the list of custom types supported.

Native is the list of supported native types.

Unmarshalers is the list of possible unmarshaler kcd support.

Functions

func IsCustomType

func IsCustomType(t reflect.Type) bool

IsCustomType check the type is a custom type.

func IsImplementingUnmarshaler

func IsImplementingUnmarshaler(t reflect.Type) bool

IsImplementingUnmarshaler check if the type t implement one of the possible unmarshalers.

func IsNative

func IsNative(t reflect.Type) bool

IsNative check if the type t is a native type.

func IsUnmarshallable

func IsUnmarshallable(t reflect.Type) bool

IsUnmarshallable check if the type t is either a native, custom type or implement an unmarshaler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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