errbyte

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 15 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New   = &newCreator{}
	Empty = &emptyCreator{}
)

Functions

This section is empty.

Types

type Result

type Result struct {
	Value        byte
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Result) AsJsonContractsBinder added in v0.8.7

func (it *Result) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Result) AsValueWithErrorWrapperBinder added in v0.7.6

func (it *Result) AsValueWithErrorWrapperBinder() errorwrapper.ValueWithErrorWrapperBinder

func (*Result) Bool added in v0.7.6

func (it *Result) Bool() bool

Bool anything but zero or null will be true

func (*Result) Dispose added in v0.8.7

func (it *Result) Dispose()

func (*Result) ErrorWrapperInf added in v0.8.7

func (it *Result) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*Result) Float32 added in v0.7.6

func (it *Result) Float32() float32

func (*Result) Float64 added in v0.7.6

func (it *Result) Float64() float64

func (*Result) HasError added in v0.4.9

func (it *Result) HasError() bool

func (*Result) HasIssuesOrEmpty added in v0.7.6

func (it *Result) HasIssuesOrEmpty() bool

func (*Result) HasSafeItems added in v0.7.6

func (it *Result) HasSafeItems() bool

func (*Result) Int added in v0.7.6

func (it *Result) Int() int

func (*Result) IsAnyNull added in v0.8.7

func (it *Result) IsAnyNull() bool

func (*Result) IsEmpty added in v0.7.6

func (it *Result) IsEmpty() bool

func (*Result) IsEmptyError added in v0.4.9

func (it *Result) IsEmptyError() bool

func (*Result) IsFailed added in v0.7.6

func (it *Result) IsFailed() bool

func (*Result) IsInvalid added in v0.8.9

func (it *Result) IsInvalid() bool

func (*Result) IsMax added in v0.8.7

func (it *Result) IsMax() bool

func (*Result) IsSafeValidRange added in v0.4.9

func (it *Result) IsSafeValidRange(min, max byte) bool

func (*Result) IsSuccess added in v0.7.6

func (it *Result) IsSuccess() bool

func (*Result) IsValid added in v0.7.6

func (it *Result) IsValid() bool

func (*Result) IsValidRange added in v0.4.9

func (it *Result) IsValidRange(min, max byte) bool

func (Result) Json added in v0.7.6

func (it Result) Json() corejson.Result

func (*Result) JsonModelAny added in v0.7.6

func (it *Result) JsonModelAny() interface{}

func (*Result) JsonParseSelfInject added in v0.7.6

func (it *Result) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Result) JsonPtr added in v0.7.9

func (it Result) JsonPtr() *corejson.Result

func (Result) NumberString added in v0.8.7

func (it Result) NumberString() string

func (*Result) SafeString added in v0.8.7

func (it *Result) SafeString() string

func (Result) String added in v0.7.6

func (it Result) String() string

type Result2

type Result2 struct {
	Result
	Value2 byte
}

type Result3

type Result3 struct {
	Result2
	Value3 byte
}

type ResultWithApplicable

type ResultWithApplicable struct {
	Result
	IsApplicable bool
}

type ResultWithApplicable2

type ResultWithApplicable2 struct {
	Result2
	IsApplicable bool
}

type Results

type Results struct {
	Values       []byte
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Results) AsJsonContractsBinder added in v0.8.7

func (it *Results) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Results) AsResultsContractsBinder added in v0.8.7

func (it *Results) AsResultsContractsBinder() errorwrapper.ResultsContractsBinder

func (*Results) AsValueWithErrorWrapperBinder added in v0.8.7

func (it *Results) AsValueWithErrorWrapperBinder() errorwrapper.ValueWithErrorWrapperBinder

func (*Results) Clear added in v0.8.7

func (it *Results) Clear()

func (*Results) ConvertToJsonResult added in v0.8.7

func (it *Results) ConvertToJsonResult() *corejson.Result

func (*Results) Deserialize added in v1.0.2

func (it *Results) Deserialize(
	toPtr interface{},
) *errorwrapper.Wrapper

func (*Results) DeserializeSkipExistingErr added in v1.0.2

func (it *Results) DeserializeSkipExistingErr(
	toPtr interface{},
) *errorwrapper.Wrapper

func (*Results) Dispose added in v0.8.7

func (it *Results) Dispose()

func (*Results) ErrStr added in v0.6.9

func (it *Results) ErrStr() *errstr.Result

func (*Results) ErrorWrapperInf added in v0.8.7

func (it *Results) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*Results) HasAnyItem added in v0.7.3

func (it *Results) HasAnyItem() bool

func (*Results) HasError added in v0.3.8

func (it *Results) HasError() bool

func (*Results) HasIssuesOrEmpty added in v0.3.8

func (it *Results) HasIssuesOrEmpty() bool

func (*Results) HasSafeItems added in v0.3.8

func (it *Results) HasSafeItems() bool

HasSafeItems No errors and has items

func (*Results) IsAnyNull added in v0.8.7

func (it *Results) IsAnyNull() bool

func (*Results) IsEmpty added in v0.7.3

func (it *Results) IsEmpty() bool

func (*Results) IsEmptyError added in v0.3.8

func (it *Results) IsEmptyError() bool

func (*Results) IsEqual added in v0.8.7

func (it *Results) IsEqual(term string) bool

func (*Results) IsEqualIgnoreCase added in v0.8.7

func (it *Results) IsEqualIgnoreCase(term string) bool

func (*Results) IsFailed added in v0.7.0

func (it *Results) IsFailed() bool

func (*Results) IsInvalid added in v0.8.9

func (it *Results) IsInvalid() bool

func (*Results) IsSuccess added in v0.7.0

func (it *Results) IsSuccess() bool

func (*Results) IsValid added in v0.7.0

func (it *Results) IsValid() bool

func (Results) Json added in v0.7.6

func (it Results) Json() corejson.Result

func (*Results) JsonModelAny added in v0.7.6

func (it *Results) JsonModelAny() interface{}

func (*Results) JsonParseSelfInject added in v0.7.6

func (it *Results) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Results) JsonPtr added in v0.7.9

func (it Results) JsonPtr() *corejson.Result

func (*Results) Length added in v0.7.3

func (it *Results) Length() int

func (*Results) NonEmptyString added in v0.7.3

func (it *Results) NonEmptyString(converter func(safeValues []byte) string) string

NonEmptyString converter will only be called has bytes and no issues

func (*Results) SafeString added in v0.8.7

func (it *Results) SafeString() string

func (*Results) SafeValues added in v0.8.7

func (it *Results) SafeValues() []byte

func (*Results) SafeValuesPtr added in v0.8.7

func (it *Results) SafeValuesPtr() *[]byte

func (*Results) SimpleStringOnce added in v0.8.7

func (it *Results) SimpleStringOnce(
	isInit bool,
) corestr.SimpleStringOnce

func (*Results) SplitLines added in v0.8.7

func (it *Results) SplitLines() []string

func (*Results) SplitLinesSimpleSlice added in v0.8.7

func (it *Results) SplitLinesSimpleSlice() *corestr.SimpleSlice

func (Results) String added in v0.4.9

func (it Results) String() string

func (*Results) ValidValue added in v0.8.7

func (it *Results) ValidValue() *corestr.ValidValue

type ResultsWithErrorCollection added in v0.3.8

type ResultsWithErrorCollection struct {
	Values        []byte
	ErrorWrappers *errwrappers.Collection
}

func (*ResultsWithErrorCollection) AsJsonContractsBinder added in v0.8.7

func (it *ResultsWithErrorCollection) AsJsonContractsBinder() corejson.JsonContractsBinder

func (ResultsWithErrorCollection) AsValuesWithErrorWrapperCollectionBinder added in v0.8.7

func (it ResultsWithErrorCollection) AsValuesWithErrorWrapperCollectionBinder() errorwrapper.ValuesWithErrorWrapperCollectionBinder

func (*ResultsWithErrorCollection) Clear added in v0.8.7

func (it *ResultsWithErrorCollection) Clear()

func (*ResultsWithErrorCollection) Dispose added in v0.8.7

func (it *ResultsWithErrorCollection) Dispose()

func (*ResultsWithErrorCollection) ErrorWrapperInf added in v0.8.7

func (it *ResultsWithErrorCollection) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*ResultsWithErrorCollection) HasAnyItem added in v0.7.6

func (it *ResultsWithErrorCollection) HasAnyItem() bool

func (*ResultsWithErrorCollection) HasError added in v0.3.8

func (it *ResultsWithErrorCollection) HasError() bool

func (*ResultsWithErrorCollection) HasIssuesOrEmpty added in v0.3.8

func (it *ResultsWithErrorCollection) HasIssuesOrEmpty() bool

func (*ResultsWithErrorCollection) HasSafeItems added in v0.3.8

func (it *ResultsWithErrorCollection) HasSafeItems() bool

HasSafeItems No errors and has items

func (*ResultsWithErrorCollection) IsAnyNull added in v0.8.7

func (it *ResultsWithErrorCollection) IsAnyNull() bool

func (*ResultsWithErrorCollection) IsEmpty added in v0.7.6

func (it *ResultsWithErrorCollection) IsEmpty() bool

func (*ResultsWithErrorCollection) IsEmptyError added in v0.3.8

func (it *ResultsWithErrorCollection) IsEmptyError() bool

func (*ResultsWithErrorCollection) IsEmptyItems added in v0.3.8

func (it *ResultsWithErrorCollection) IsEmptyItems() bool

func (*ResultsWithErrorCollection) IsFailed added in v0.7.6

func (it *ResultsWithErrorCollection) IsFailed() bool

func (*ResultsWithErrorCollection) IsInvalid added in v0.8.9

func (it *ResultsWithErrorCollection) IsInvalid() bool

func (*ResultsWithErrorCollection) IsSuccess added in v0.7.6

func (it *ResultsWithErrorCollection) IsSuccess() bool

func (*ResultsWithErrorCollection) IsValid added in v0.7.6

func (it *ResultsWithErrorCollection) IsValid() bool

func (ResultsWithErrorCollection) Json added in v0.7.6

func (*ResultsWithErrorCollection) JsonModelAny added in v0.7.6

func (it *ResultsWithErrorCollection) JsonModelAny() interface{}

func (*ResultsWithErrorCollection) JsonParseSelfInject added in v0.7.6

func (it *ResultsWithErrorCollection) JsonParseSelfInject(jsonResult *corejson.Result) error

func (ResultsWithErrorCollection) JsonPtr added in v0.7.9

func (*ResultsWithErrorCollection) Length added in v0.7.6

func (it *ResultsWithErrorCollection) Length() int

func (*ResultsWithErrorCollection) SafeString added in v0.8.7

func (it *ResultsWithErrorCollection) SafeString() string

func (*ResultsWithErrorCollection) SafeValues added in v0.8.7

func (it *ResultsWithErrorCollection) SafeValues() []byte

func (*ResultsWithErrorCollection) SafeValuesPtr added in v0.8.7

func (it *ResultsWithErrorCollection) SafeValuesPtr() *[]byte

func (ResultsWithErrorCollection) String added in v0.7.6

func (it ResultsWithErrorCollection) String() string

Jump to

Keyboard shortcuts

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