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 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
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 EmptyWithErrorPtrUsingErrorWrapper ¶
func EmptyWithErrorPtrUsingErrorWrapper( wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func EmptyWithoutErrorPtr ¶
func EmptyWithoutErrorPtr() *Result
func NewBytes ¶
func NewBytes( jsonBytes []byte, wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func NewBytesPtr ¶
func NewBytesPtr( jsonBytes *[]byte, wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func NewFromFile ¶ added in v0.3.0
func NewFromFileLock ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.