jsonutils

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFS

func LoadFromFS[T any](fs fs.ReadFileFS, path string) (T, error)

LoadFromFS loads a JSON file from the filesystem, instantiates and unmarshals it into T.

func WriteFile

func WriteFile(path string, data any) error

WriteFile marshals data into pretty JSON and writes it at path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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