validation

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBitFieldOfLengthOverflowingTypeError

func NewBitFieldOfLengthOverflowingTypeError(
	bitFieldLength uint, bitFieldType string,
) (
	e *bitFieldOfLengthOverflowingTypeError,
)

func NewBitFieldOfUnsupportedTypeError

func NewBitFieldOfUnsupportedTypeError(bitFieldType string) (
	e *bitFieldOfUnsupportedTypeError,
)

func NewBitFieldWithMalformedTagError

func NewBitFieldWithMalformedTagError() *bitFieldWithMalformedTagError

func NewBitFieldWithNoStructTagError

func NewBitFieldWithNoStructTagError() *bitFieldWithNoStructTagError

func NewFormatWithNoWordsError

func NewFormatWithNoWordsError() *formatWithNoWordsError

func NewLengthOfByteSliceNotEqualToFormatLengthError

func NewLengthOfByteSliceNotEqualToFormatLengthError(
	formatLengthInBytes, byteSliceLength uint,
) (
	e *lengthOfByteSliceNotEqualToFormatLengthError,
)

func NewNonPointerError

func NewNonPointerError() *nonPointerError

func NewPointerToNonStructVariableError

func NewPointerToNonStructVariableError() *pointerToNonStructVariableError

func NewWordNotStructError

func NewWordNotStructError() *wordNotStructError

func NewWordOfIncompatibleLengthError

func NewWordOfIncompatibleLengthError(wordLength uint) (
	e *wordOfIncompatibleLengthError,
)

func NewWordOfLengthNotEqualToSumOfLengthsOfBitFieldsError

func NewWordOfLengthNotEqualToSumOfLengthsOfBitFieldsError(
	wordLength, bitFieldLengthSum uint,
) (
	e *wordOfLengthNotEqualToSumOfLengthsOfBitFieldsError,
)

func NewWordWithMalformedTagError

func NewWordWithMalformedTagError() *wordWithMalformedTagError

func NewWordWithNoBitFieldsError

func NewWordWithNoBitFieldsError() *wordWithNoBitFieldsError

func NewWordWithNoStructTagError

func NewWordWithNoStructTagError() *wordWithNoStructTagError

Types

type BitFieldError

type BitFieldError interface {
	WordError
	SetBitFieldName(string)
}

type DefaultBitFieldError

type DefaultBitFieldError struct {
	DefaultWordError
	// contains filtered or unexported fields
}

func (*DefaultBitFieldError) SetBitFieldName

func (e *DefaultBitFieldError) SetBitFieldName(bitFieldName string)

type DefaultFormatError

type DefaultFormatError struct {
	DefaultFunctionError
	// contains filtered or unexported fields
}

func (*DefaultFormatError) SetFormatName

func (e *DefaultFormatError) SetFormatName(formatName string)

type DefaultFunctionError

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

func (*DefaultFunctionError) SetFunctionName

func (e *DefaultFunctionError) SetFunctionName(functionName string)

type DefaultWordError

type DefaultWordError struct {
	DefaultFormatError
	// contains filtered or unexported fields
}

func (*DefaultWordError) SetWordName

func (e *DefaultWordError) SetWordName(wordName string)

type FormatError

type FormatError interface {
	FunctionError
	SetFormatName(string)
}

type FunctionError

type FunctionError interface {
	error
	SetFunctionName(string)
}

type WordError

type WordError interface {
	FormatError
	SetWordName(string)
}

Jump to

Keyboard shortcuts

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