json

package
v0.1.928 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackbox added in v0.1.498

type Blackbox interface {
	// contains filtered or unexported methods
}

type Client

type Client interface {
	Blackbox
	contract.Marshaler
	contract.Unmarshaler
}

func NewClient

func NewClient() Client

type DefaultTool added in v0.1.11

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) Marshal added in v0.1.11

func (d *DefaultTool) Marshal(ctx context.Context, v any, opts contract.JSONOptions) ([]byte, error)

Marshal encodes a struct to a JSON string.

func (*DefaultTool) Unmarshal added in v0.1.11

func (d *DefaultTool) Unmarshal(ctx context.Context, r io.Reader, v any, opts contract.JSONOptions) error

Unmarshal decodes a JSON string to a struct.

type Tool added in v0.1.245

type Tool interface {
	contract.Marshaler
	contract.Unmarshaler
}

Jump to

Keyboard shortcuts

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