jsonopts

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jsonopts is the encode option for JSON sent to a client API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	V1 bool
}

Set is v2 unless V1 is set. The zero value is the default. Persist files do not use Set.

func (Set) Marshal

func (s Set) Marshal(v any) ([]byte, error)

func (Set) MarshalWrite

func (s Set) MarshalWrite(w io.Writer, v any, extra ...jsonv2.Options) error

func (Set) Unmarshal

func (s Set) Unmarshal(data []byte, v any) error

Jump to

Keyboard shortcuts

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