errjson

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New = &newCreator{
		Result:            &newResultCreator{},
		ResultsCollection: &newResultsCollectionCreator{},
	}
	Empty = &emptyCreator{}
)

Functions

This section is empty.

Types

type Result

type Result struct {
	*corejson.Result
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Result) CompiledErrorWrapper added in v0.7.3

func (it *Result) CompiledErrorWrapper() *errorwrapper.Wrapper

func (*Result) HasAnyItem added in v0.7.3

func (it *Result) HasAnyItem() bool

func (*Result) HasError added in v0.7.0

func (it *Result) HasError() bool

func (*Result) HasIssuesOrEmpty added in v0.7.0

func (it *Result) HasIssuesOrEmpty() bool

func (*Result) HasSafeItems added in v0.7.0

func (it *Result) HasSafeItems() bool

HasSafeItems No errors and has items

func (*Result) IsAnyNull added in v0.8.7

func (it *Result) IsAnyNull() bool

func (*Result) IsEmpty added in v0.7.3

func (it *Result) IsEmpty() bool

func (*Result) IsEmptyError added in v0.7.0

func (it *Result) IsEmptyError() bool

func (*Result) IsEqual added in v0.8.7

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

func (*Result) IsEqualIgnoreCase added in v0.8.7

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

func (*Result) IsEqualResult added in v0.8.9

func (it *Result) IsEqualResult(right *Result) bool

func (*Result) IsFailed added in v0.7.0

func (it *Result) IsFailed() bool

func (*Result) IsNull added in v0.7.0

func (it *Result) IsNull() bool

func (*Result) IsSuccess added in v0.7.0

func (it *Result) IsSuccess() bool

func (Result) JsonString added in v0.8.7

func (it Result) JsonString() string

func (*Result) Length added in v0.7.3

func (it *Result) Length() int

func (*Result) PrettyJsonBuffer added in v0.8.7

func (it *Result) PrettyJsonBuffer(prefix, indent string) (*bytes.Buffer, error)

func (Result) PrettyJsonString added in v0.8.7

func (it Result) PrettyJsonString() string

func (*Result) PrettyJsonStringWithErr added in v0.8.7

func (it *Result) PrettyJsonStringWithErr() string

func (*Result) SafeBytes added in v0.8.9

func (it *Result) SafeBytes() []byte

func (Result) SafeString added in v0.8.7

func (it Result) SafeString() string

func (*Result) SafeValues added in v0.8.7

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

func (*Result) SafeValuesPtr added in v0.8.7

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

func (*Result) SimpleStringOnce added in v0.8.7

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

func (*Result) SplitLines added in v0.8.7

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

func (*Result) SplitLinesSimpleSlice added in v0.8.7

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

func (Result) String added in v0.7.0

func (it Result) String() string

func (*Result) UnmarshalErrorJson added in v0.8.7

func (it *Result) UnmarshalErrorJson(unmarshalToReferencePtr interface{}) *errorwrapper.Wrapper

func (*Result) UnmarshalJsonResultTo added in v0.8.7

func (it *Result) UnmarshalJsonResultTo(unmarshalToReferencePtr interface{}) *errorwrapper.Wrapper

func (*Result) ValidValue added in v0.8.7

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

type ResultsCollection added in v0.4.3

type ResultsCollection struct {
	*corejson.ResultsCollection
	ErrorCollection *errwrappers.Collection
}

func (*ResultsCollection) Dispose added in v0.8.7

func (it *ResultsCollection) Dispose()

func (*ResultsCollection) HasError added in v0.8.7

func (it *ResultsCollection) HasError() bool

func (*ResultsCollection) IsAnyNull added in v0.8.7

func (it *ResultsCollection) IsAnyNull() bool

func (*ResultsCollection) IsEmpty added in v0.8.7

func (it *ResultsCollection) IsEmpty() bool

func (*ResultsCollection) Length added in v0.8.7

func (it *ResultsCollection) Length() int

Jump to

Keyboard shortcuts

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