encoder

package
v0.0.0-...-6edd512 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoEncoder

type GoEncoder struct{}

func (*GoEncoder) DecodeFromBytes

func (self *GoEncoder) DecodeFromBytes(jsonByte []byte, obj any) error

func (*GoEncoder) DecodeFromString

func (self *GoEncoder) DecodeFromString(jsonStr *string, obj any) error

func (*GoEncoder) EncodeToByte

func (self *GoEncoder) EncodeToByte(obj any) ([]byte, error)

func (*GoEncoder) EncodeToString

func (self *GoEncoder) EncodeToString(obj any) (*string, error)

type JSONEncoder

type JSONEncoder interface {
	EncodeToByte(obj any) ([]byte, error)

	EncodeToString(obj any) (*string, error)

	DecodeFromString(jsonStr *string, obj any) error

	DecodeFromBytes(jsonBytes []byte, obj any) error
}

Jump to

Keyboard shortcuts

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