~torresjrjr/go-nestedtext

NestedText in Go (alpha)

9331e83 Update README.md

3 months ago

e9f43b9 Update README.md

3 months ago

#go-nestedtext

NestedText v1* in Go (alpha).

Provides an executable which converts stdin NestedText to stdout JSON. Future plans are to provide a jq like interface and a simple library.

* This implementation does not recognise quoted or multi-lined keys, in the interest of simplicity against needless complexity.

#Build

$ go build -o nt

#Usage

$ nt < data.nt
$ nt <<EOF
wizard:
	name: Harry Potter
	email: h.potter@hogwarts.ac.uk
	address:
		> 4 Pivet Drive
		> Little Whinging
		> Surrey
		> England
	possessions:
		- elder wand
		- resurrection stone
		- invisibility cloak
EOF

#Resources