jsonutil

package
v0.0.0-...-2c87074 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Unlicense Imports: 5 Imported by: 9

Documentation

Overview

Package jsonutil implements JSON utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader, v interface{}) error

Parse parses the given JSON stream into v.

func ParseFile

func ParseFile(jsonPath string, v interface{}) (err error)

ParseFile parses the given JSON file into v.

func Write

func Write(w io.Writer, v interface{}) error

Write marshals v into JSON format, writing to w.

func WriteFile

func WriteFile(jsonPath string, v interface{}) (err error)

WriteFile marshals v into JSON format, writing to jsonPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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