drone/go-jsonnet

Name: go-jsonnet

Owner: drone.io

Description: go-jsonnet modified to preserve key ordering

Created: 2018-05-11 17:43:20.0

Updated: 2018-05-14 17:23:54.0

Pushed: 2018-05-11 18:11:03.0

Homepage:

Size: 6693

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.8 and above. We recommend always using the newest stable release of Go.

Build instructions
rt GOPATH=$HOME/go-workspace
r -pv $GOPATH
et github.com/google/go-jsonnet
GOPATH/src/github.com/google/go-jsonnet
sonnet
uild
onnet /dev/stdin <<< '{x: 1, y: self.x} + {x: 10}'

x": 10,
y": 10

Running tests
sts.sh  # Also runs `go test ./...`
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:

et github.com/clipperhouse/gen
et github.com/clipperhouse/set
rt PATH=$PATH:$GOPATH/bin  # If you haven't already
enerate
Generated Stdlib

To regenerate the standard library, do:

set_stdast_go.sh && go run cmd/dumpstdlibast.go

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.