types

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package types export types that are used by all the library packages.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCoerceInvalid     = coerce.ErrInvalid
	ErrCoerceOverflow    = coerce.ErrOverflow
	ErrCoerceUnsupported = coerce.ErrUnsupported
	ErrCoerceUnknown     = fmt.Errorf("coerce: unknown type")
)

Functions

This section is empty.

Types

type CoerceError

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

func NewCoerceError

func NewCoerceError(innerErr error) CoerceError

func (CoerceError) Error

func (c CoerceError) Error() string

func (CoerceError) Unwrap

func (c CoerceError) Unwrap() error

type InvalidDecodeError

type InvalidDecodeError struct {
	Type reflect.Type
}

An InvalidDecodeError describes an invalid argument passed to Decode. (The argument to Decode must be a non-nil pointer.)

func (*InvalidDecodeError) Error

func (e *InvalidDecodeError) Error() string

type OperationNotSupportedError

type OperationNotSupportedError struct {
	Operation string
	FieldName string
}

A OperationNotSupportedError is returned when an operation is not supported on the field.

func (OperationNotSupportedError) Error

type RequiredError

type RequiredError struct {
	IsStructOption bool
	Operation      string
	FieldName      string
	TagName        string
}

A RequiredError is returned when some values were not used.

func (RequiredError) Error

func (e RequiredError) Error() string

type ValuesNotUsedError

type ValuesNotUsedError struct {
	Operation string
}

An ValuesNotUsedError is returned when some values were not used.

func (ValuesNotUsedError) Error

func (e ValuesNotUsedError) Error() string

Jump to

Keyboard shortcuts

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