json

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func Unmarshal

func Unmarshal(b []byte, v any) error

func UnmarshalUseInt64 added in v1.1.0

func UnmarshalUseInt64(b []byte, v any) error

UnmarshalUseInt64 behaves like Unmarshal but decodes JSON integers into int64 (rather than float64) when the destination is an interface{}. This matters for full-range bigint values from wal2json: float64 only has 53 bits of mantissa and would silently round.

Types

This section is empty.

Jump to

Keyboard shortcuts

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