jsonhelpers

package
v0.0.0-...-e5d925d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(file string, self interface{}) error

Fetch: fetches json file containing users array. @args file{string} users file

func FetchGzip

func FetchGzip(file string, self interface{}) error

func Marshal

func Marshal(self interface{}) (string, error)

Marshal: json marshals struct @return string @return error

func Save

func Save(file string, self interface{}) error

Save: saves users to json file

func SaveGzip

func SaveGzip(file string, self interface{}) error

func Unmarshal

func Unmarshal(data string, self interface{}) error

Unmarshal: json unmarshals string to struct @args string @return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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