json

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 5

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