zjson

package
v0.0.0-...-aa698f8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalEnum

func MarshalEnum[S comparable](from S, m map[string]S) ([]byte, error)

func MarshalToFile

func MarshalToFile(from interface{}, fpath string) error

MarshalToFile marshals from into a json byte stream that is written to fpath. It happens atomically using a temporary file

func UnmarshalEnum

func UnmarshalEnum[S comparable](to *S, data []byte, m map[string]S) error

func UnmarshalFromFile

func UnmarshalFromFile(to interface{}, fpath string, allowNoFile bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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