sbcencoder

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonEncoder

type JsonEncoder struct{}

JsonEncoder is a type that provides encoding and decoding functionality for JSON data.

func NewJsonEncoder

func NewJsonEncoder() *JsonEncoder

NewJsonEncoder creates a new JsonEncoder.

func (JsonEncoder) Decode

func (j JsonEncoder) Decode(data []byte, v any) error

Decode decodes the byte slice into type T.

func (JsonEncoder) Encode

func (j JsonEncoder) Encode(v any) ([]byte, error)

Encode encodes the given value v into a byte slice.

Jump to

Keyboard shortcuts

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