transform

package module
v0.0.0-...-a7a822a Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: MIT Imports: 6 Imported by: 2

README

Initially based on package yaml2json with an MIT license agreement. Build Status

bronze1man/yaml2json

The default makefile is configured to use godeps for vendoring.

make -k get save build test
GO15VENDOREXPERIMENT=1 GOPATH=/go /go/bin/godep get "gopkg.in/yaml.v2" 
GO15VENDOREXPERIMENT=1 GOPATH=/go /go/bin/godep save
GO15VENDOREXPERIMENT=1 GOPATH=/go /go/bin/godep go build -a -ldflags '-s'
GO15VENDOREXPERIMENT=1 GOPATH=/go /go/bin/godep go test -v
=== RUN   TestUnhtmlize
--- PASS: TestUnhtmlize (0.00s)
=== RUN   TestJson2Yaml
--- PASS: TestJson2Yaml (0.00s)
=== RUN   TestYaml2Json
--- PASS: TestYaml2Json (0.00s)
=== RUN   TestYaml2JsonIndent
--- PASS: TestYaml2JsonIndent (0.00s)
PASS
ok  	github.com/davidwalter0/transform	0.003s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Json2Yaml

func Json2Yaml(raw []byte) ([]byte, error)

func TransformData

func TransformData(in interface{}) (out interface{}, err error)

func Unhtmlize

func Unhtmlize(text []byte) []byte

func Yaml2Json

func Yaml2Json(raw []byte) ([]byte, error)

func Yaml2JsonIndent

func Yaml2JsonIndent(raw []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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