Documentation
¶
Index ¶
- Variables
- type JsonMarshaller
- type Jsoner
- type ParseSelfInjector
- type Result
- func EmptyWithError(err error) Result
- func EmptyWithErrorPtr(err error) *Result
- func EmptyWithoutErrorPtr() *Result
- func New(jsonBytes []byte, err error) Result
- func NewFromAny(any interface{}) *Result
- func NewPtr(jsonBytes []byte, err error) *Result
- func NewPtrUsingBytesPtr(jsonBytes *[]byte, err error) *Result
- func NewUsingBytes(jsonBytes *[]byte) Result
- func NewUsingBytesPtr(jsonBytes *[]byte) *Result
- func (jsonResult *Result) HandleError()
- func (jsonResult *Result) HandleErrorWithMsg(msg string)
- func (jsonResult *Result) HasBytes() bool
- func (jsonResult *Result) HasError() bool
- func (jsonResult *Result) HasJson() bool
- func (jsonResult *Result) IsEmptyError() bool
- func (jsonResult *Result) IsEmptyJson() bool
- func (jsonResult *Result) IsEmptyJsonBytes() bool
- func (jsonResult *Result) JsonString() string
- func (jsonResult *Result) JsonStringPtr() *string
- func (jsonResult *Result) Unmarshal(any interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StaticJsonError = msgtype.EmptyResultCannotMakeJson. Error(constants.EmptyString, constants.EmptyString) )
Functions ¶
This section is empty.
Types ¶
type JsonMarshaller ¶
type ParseSelfInjector ¶
type ParseSelfInjector interface {
JsonParseSelfInject(jsonResult *Result)
}
type Result ¶
func EmptyWithError ¶ added in v0.1.7
func EmptyWithErrorPtr ¶ added in v0.1.7
func EmptyWithoutErrorPtr ¶ added in v0.1.7
func EmptyWithoutErrorPtr() *Result
func NewFromAny ¶ added in v0.3.1
func NewFromAny(any interface{}) *Result
func NewPtrUsingBytesPtr ¶ added in v0.1.7
func NewUsingBytes ¶ added in v0.1.7
func NewUsingBytesPtr ¶ added in v0.1.7
func (*Result) HandleError ¶
func (jsonResult *Result) HandleError()
func (*Result) HandleErrorWithMsg ¶
func (*Result) IsEmptyError ¶
func (*Result) IsEmptyJson ¶
func (*Result) IsEmptyJsonBytes ¶
len == 0, nil, {} returns as empty true
func (*Result) JsonString ¶
func (*Result) JsonStringPtr ¶
Click to show internal directories.
Click to hide internal directories.