reader

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

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

Go to latest
Published: Dec 16, 2014 License: MIT Imports: 9 Imported by: 0

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