serialize

package
v0.0.0-...-7ed9018 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SaveDir string

Functions

func Init

func Init(saveDir string) error

func RetrieveObject

func RetrieveObject(file string, object interface{}) error

Use json to retrieve an object from a file

func SaveAll

func SaveAll(defs ...SaveDefinition)

func SaveObject

func SaveObject(file string, object interface{}) error

Use json to save an object to a file

Types

type SaveDefinition

type SaveDefinition struct {
	File   string
	Object interface{}
}

Jump to

Keyboard shortcuts

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