parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package parser provides functions to parse various structured data formats into an internal Go representation that can later be reformatted by the formatter package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter added in v0.4.1

func Filter(in interface{}, path string) (interface{}, error)

Filter takes structured data and returns just the portion of it that matches the provided path using dot notation. e.g. data.header.1

func Names added in v0.4.1

func Names() []string

Names returns a sorted list of valid options for the "format" parameter of Parse

func Parse added in v0.4.1

func Parse(input []byte, format string) (interface{}, error)

Parse takes serialised data and parses it into a Go interface{}. The format can be supplied explicitly or can be set to "auto" in which case Parse will attempt to automatically identify the serialisation format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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