ez

package module
v0.0.0-...-569018b Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 7 Imported by: 2

README

ez

GoDoc Donate

Easily serialize and deserialize data in YAML format

Add to your application

go get code.rocketnine.space/tslocum/ez

Dependencies

Documentation

See godoc.

Documentation

Overview

Package ez provides data serialization and deseralization in YAML format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath(appName string) (string, error)

DefaultConfigPath returns the default path to a configuration file for an application with the specified name. If no name is provided, the executable name is used.

func Deserialize

func Deserialize(object interface{}, path string) error

Deserialize loads data from the specified path. If a file does not exist at the specified path, no error is returned.

func Serialize

func Serialize(object interface{}, path string) error

Serialize stores data in YAML format at the specified path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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