json

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(v any) error // Decode reads the next JSON-encoded value from its input and stores it in the value pointed to by v.
}

type Encoder

type Encoder interface {
	Encode(v any) error
}

type Json

type Json interface {
	Marshal(v any) ([]byte, error)
	MarshalIndent(v any, prefix string, indent string) ([]byte, error)
	Unmarshal(buf []byte, v any) error
	NewEncoder(w io.Writer) Encoder
	NewDecoder(r io.Reader) Decoder
	Indent(dst *bytes.Buffer, src []byte, prefix string, indent string) error
}

The Json interface is used to customize the json handler. Five wrappers are provided by default. For detailed documentation, see: https://pkg.go.dev/github.com/3JoB/telebot/v2/pkg/json.

Some methods use the default sonnet because they are not under *Bot.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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