yaml

package
v0.0.0-...-f64704c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema table.Tables

Schema The parsed from the YAML tables

Functions

func ReadData

func ReadData(file string, data []byte, out interface{}) (err error)

func ReadFile

func ReadFile(file string, out interface{}) (err error)

func ReadTables

func ReadTables(conf config.Config) (err error)

ReadTables Read all of the files at path that have the extension 'yml' and parse them into table.Table structs

func Setup

func Setup(conf config.Config)

func WriteFile

func WriteFile(file string, tbl table.Table) (err error)

func WriteTable

func WriteTable(path string, tbl table.Table) (err error)

WriteTable Serialise the Table has YAML and write it to path

func WriteTables

func WriteTables(path string, tables table.Tables) (err error)

WriteTables Write the tables parameter to the path as YAML files

Types

This section is empty.

Jump to

Keyboard shortcuts

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