json

package
v0.0.0-...-5d6f3da Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJson

func FromJson(jsonStr string, obj interface{}) errors.AppError

func FromJsonCtx

func FromJsonCtx(ctx context.Context, jsonStr string, obj interface{}) errors.AppError

func ToJson

func ToJson(obj interface{}) (string, errors.AppError)

func ToJsonCtx

func ToJsonCtx(ctx context.Context, obj interface{}) (string, errors.AppError)

func ToJsonIgnoreError

func ToJsonIgnoreError(obj interface{}) string

Types

type TimeDecoder

type TimeDecoder struct{}

func (*TimeDecoder) Decode

func (td *TimeDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

type TimeEncoder

type TimeEncoder struct {
	// contains filtered or unexported fields
}

func (*TimeEncoder) Encode

func (codec *TimeEncoder) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (*TimeEncoder) IsEmpty

func (codec *TimeEncoder) IsEmpty(ptr unsafe.Pointer) bool

Jump to

Keyboard shortcuts

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