jio

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package jio provides convenience functions for saving and loading JSON-encoded values.

Uses the aio package for I/O.

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 saves v to the given file, encoded as JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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