~torresjrjr/go-nestedtext

NestedText in Go - early development
Fixed empty key bug, error msg bug

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~torresjrjr/go-nestedtext
read/write
git@git.sr.ht:~torresjrjr/go-nestedtext

You can also use your local clone with git send-email.

#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