Documentation
¶
Index ¶
- type Result
- func EmptyWithError(err error) *Result
- func EmptyWithErrorPtrUsingErrorWrapper(wrapper *errorwrapper.Wrapper) *Result
- func EmptyWithoutErrorPtr() *Result
- func Error(err error, errVariation errtype.Variation) *Result
- func Marshal(anyObject interface{}) *Result
- func New(jsonBytes []byte, err error) *Result
- func NewBytes(jsonBytes []byte, wrapper *errorwrapper.Wrapper) *Result
- func NewBytesPtr(jsonBytes *[]byte, wrapper *errorwrapper.Wrapper) *Result
- func NewFromFile(filePath string) *Result
- func NewFromFileLock(filePath string) *Result
- func (it *Result) CompiledErrorWrapper() *errorwrapper.Wrapper
- func (it *Result) HasAnyItem() bool
- func (it *Result) HasError() bool
- func (it *Result) HasIssuesOrEmpty() bool
- func (it *Result) HasSafeItems() bool
- func (it *Result) IsEmpty() bool
- func (it *Result) IsEmptyError() bool
- func (it *Result) IsFailed() bool
- func (it *Result) IsNull() bool
- func (it *Result) IsSuccess() bool
- func (it *Result) Length() int
- func (it *Result) String() string
- func (it *Result) Unmarshal(unmarshalToReferencePtr interface{}) *errorwrapper.Wrapper
- func (it *Result) ValueMust() *[]byte
- func (it *Result) ValueNonPtr() []byte
- type ResultsCollection
- func EmptyResultsCollection() *ResultsCollection
- func NewResultsCollection(jsonCollection *corejson.ResultsCollection) *ResultsCollection
- func NewResultsCollectionUsingError(err error) *ResultsCollection
- func NewResultsCollectionUsingTypeError(errType errtype.Variation, err error) *ResultsCollection
- func NewResultsCollectionUsingTypeMsg(errType errtype.Variation, msg string) *ResultsCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { *corejson.Result ErrorWrapper *errorwrapper.Wrapper }
func EmptyWithError ¶
EmptyWithError wrapper will be empty error wrapper
func EmptyWithErrorPtrUsingErrorWrapper ¶
func EmptyWithErrorPtrUsingErrorWrapper( wrapper *errorwrapper.Wrapper, ) *Result
EmptyWithErrorPtrUsingErrorWrapper wrapper nil will point to empty error wrapper
func EmptyWithoutErrorPtr ¶
func EmptyWithoutErrorPtr() *Result
func NewBytes ¶
func NewBytes( jsonBytes []byte, wrapper *errorwrapper.Wrapper, ) *Result
NewBytes wrapper nil will point to empty error wrapper
func NewBytesPtr ¶
func NewBytesPtr( jsonBytes *[]byte, wrapper *errorwrapper.Wrapper, ) *Result
NewBytesPtr wrapper nil will point to empty error wrapper
func NewFromFile ¶ added in v0.3.0
func NewFromFileLock ¶ added in v0.3.0
func (*Result) CompiledErrorWrapper ¶ added in v0.7.3
func (it *Result) CompiledErrorWrapper() *errorwrapper.Wrapper
func (*Result) HasAnyItem ¶ added in v0.7.3
func (*Result) HasIssuesOrEmpty ¶ added in v0.7.0
func (*Result) HasSafeItems ¶ added in v0.7.0
HasSafeItems No errors and has items
func (*Result) IsEmptyError ¶ added in v0.7.0
func (*Result) Unmarshal ¶ added in v0.7.3
func (it *Result) Unmarshal(unmarshalToReferencePtr interface{}) *errorwrapper.Wrapper
func (*Result) ValueNonPtr ¶ added in v0.7.3
type ResultsCollection ¶ added in v0.4.3
type ResultsCollection struct { *corejson.ResultsCollection ErrorCollection *errwrappers.Collection }
func EmptyResultsCollection ¶ added in v0.4.3
func EmptyResultsCollection() *ResultsCollection
func NewResultsCollection ¶ added in v0.4.3
func NewResultsCollection( jsonCollection *corejson.ResultsCollection, ) *ResultsCollection
func NewResultsCollectionUsingError ¶ added in v0.4.3
func NewResultsCollectionUsingError( err error, ) *ResultsCollection
func NewResultsCollectionUsingTypeError ¶ added in v0.4.3
func NewResultsCollectionUsingTypeError( errType errtype.Variation, err error, ) *ResultsCollection
func NewResultsCollectionUsingTypeMsg ¶ added in v0.4.3
func NewResultsCollectionUsingTypeMsg( errType errtype.Variation, msg string, ) *ResultsCollection
Click to show internal directories.
Click to hide internal directories.