json

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package json is just sample

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSONFile

func LoadJSONFile(filePath string) ([]byte, error)

LoadJSONFile is to read json file

func LoadWithDecode

func LoadWithDecode(filePath string, data interface{}) error

LoadWithDecode is to read file and then decode it.

func MarshalIndentJSON

func MarshalIndentJSON(jsonData string) ([]byte, error)

MarshalIndentJSON is to marshal JSON with indent

func MarshalJSON

func MarshalJSON(jsonData string) ([]byte, error)

MarshalJSON is to marshal JSON

func UnmarshalJSON

func UnmarshalJSON(jsonData string, retObj *map[string]interface{})

UnmarshalJSON is to unmarshal JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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