2017-10-13 19:55:24 -04:00
2017-10-10 00:06:14 -04:00
2017-09-28 22:21:46 -04:00
2017-10-12 20:00:45 -04:00
2017-10-10 00:06:14 -04:00
2017-10-13 19:55:24 -04:00
2016-03-01 17:08:35 -08:00
2017-10-10 00:06:14 -04:00
2017-09-19 23:48:34 -04:00
2017-10-13 15:49:06 -04:00
2017-10-13 15:49:06 -04:00
2017-09-29 12:36:04 -04:00
2017-10-05 22:13:09 -04:00
2017-10-13 15:33:23 -04:00
2017-10-10 00:31:02 -04:00
2017-10-13 15:49:06 -04:00
2017-10-13 19:55:06 -04:00
2017-10-10 00:06:14 -04:00
2017-10-10 00:06:14 -04:00
2017-10-13 15:49:06 -04:00
2017-10-13 15:33:23 -04:00
2017-10-13 15:49:06 -04:00

go-jsonnet

GoDoc Widget Travis Widget Coverage Status Widget

This an implementation of Jsonnet in pure Go. It is feature complete but is not as heavily exercised as the Jsonnet C++ implementation. Please try it out and give feedback.

This code is known to work on Go 1.6 and above.

Build instructions

export GOPATH=$HOME/go-workspace
mkdir -pv $GOPATH
go get github.com/google/go-jsonnet
cd $GOPATH/src/github.com/google/go-jsonnet
cd jsonnet
go build
./jsonnet /dev/stdin <<< '{x: 1, y: self.x} + {x: 10}'
{
   "x": 10,
   "y": 10
}

Implementation Notes

We are generating some helper classes on types by using http://clipperhouse.github.io/gen/. Do the following to regenerate these if necessary:

go get github.com/mjibson/esc
go get github.com/clipperhouse/gen
go get github.com/clipperhouse/set
export PATH=$PATH:$GOPATH/bin  # If you haven't already
go generate
Description
No description provided
Readme Apache-2.0 24 MiB
Languages
Go 98.4%
Jsonnet 0.7%
Python 0.3%
C 0.3%
Starlark 0.2%