exjson

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalIndent added in v0.4.23

func MarshalIndent(data any, indent string) ([]byte, error)

func Read

func Read(filename string, ptrToValue interface{}) error

func ReadDict_StringBoolMap

func ReadDict_StringBoolMap(filename string) (map[string]bool, error)

func ReadList_StringSlice

func ReadList_StringSlice(filename string) ([]string, error)

func Save

func Save(d interface{}, saveTo string) error

func SaveToFile

func SaveToFile(d interface{}, f io.Writer) error

func Unmarshal added in v1.0.0

func Unmarshal[T any](data []byte) (T, error)

func UnmarshalString added in v1.0.0

func UnmarshalString[T any](data string) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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