jsonfile

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Overview

I got tired of writing the same readConfigFile(), writeConfigFile() boilerplate over and over again..

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(destination io.Writer, data interface{}) error

func ReadAllowUnknownFields

func ReadAllowUnknownFields(path string, data interface{}) error

func ReadDisallowUnknownFields

func ReadDisallowUnknownFields(path string, data interface{}) error

func UnmarshalAllowUnknownFields

func UnmarshalAllowUnknownFields(source io.Reader, data interface{}) error

func UnmarshalDisallowUnknownFields

func UnmarshalDisallowUnknownFields(source io.Reader, data interface{}) error

func Write

func Write(path string, data interface{}, options ...osutil.WriteFileOption) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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