jsonf

package
v0.0.0-...-62718c5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package jsonf provides convenience functions for saving and loading JSON-encoded values to and from the hard drive.

Automatically uses gzip streams for gzip files, using the gzipf package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string, v interface{}) error

Load loads a JSON encoded value from the given file and populates v with it.

func Save

func Save(file string, v interface{}) error

Save encodes v as JSON and saves it to the given file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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