Help us shape the future of Go! Take the 2026 Go Developer Survey

json

package
v1.1.84 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal[A any](a A) E.Either[error, []byte]

Marshal converts a data structure to json

func ToTypeE

func ToTypeE[A any](src any) E.Either[error, A]

func ToTypeO

func ToTypeO[A any](src any) O.Option[A]

func Unmarshal

func Unmarshal[A any](data []byte) E.Either[error, A]

Unmarshal parses a JSON data structure from bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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