json_

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(bufa []byte, bufbs ...[]byte) ([]byte, error)

func MarshalConcat

func MarshalConcat(va interface{}, vbs ...interface{}) ([]byte, error)

Marshal returns the JSON encoding of va, vbs..., ignore conflict keys of json if meet later.

func MarshalIndentConcat

func MarshalIndentConcat(va interface{}, prefix, indent string, vbs ...interface{}) ([]byte, error)

func ReadConfigFile

func ReadConfigFile(name string, v interface{}) error

func UnmarshalConcat

func UnmarshalConcat(data []byte, va interface{}, vbs ...interface{}) error

Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError. ignore conflict keys of json if meet later.

func WriteConfigFile

func WriteConfigFile(name string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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