reader

package
v0.0.0-...-9a227d3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBytes

func ReadBytes(data []byte, format string) (interface{}, error)

func ReadFile

func ReadFile(path string) (interface{}, error)

Types

type ConfigFormat

type ConfigFormat string
const (
	FormatYAML ConfigFormat = "yaml"
	FormatJSON ConfigFormat = "json"
	FormatTOML ConfigFormat = "toml"
)

type ConfigReader

type ConfigReader struct {
	Format string
	// contains filtered or unexported fields
}

func (*ConfigReader) Export

func (cr *ConfigReader) Export() (interface{}, error)

Retuns the configuration data into a generic object for for us.

Jump to

Keyboard shortcuts

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