json

package
v0.0.0-...-dc1b6dd Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(filename string, v any) error

FromFile reads a JSON file from the specified path and unmarshals it into the provided struct

func FromJSON

func FromJSON(jsonData string, v any) error

func MustToJSON

func MustToJSON(v any) string

func ToFile

func ToFile(filename string, v any) error

ToFile writes a struct to a file in JSON format

Types

This section is empty.

Jump to

Keyboard shortcuts

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