Skip to content

harsimranmaan/go-jsonnet-func

Repository files navigation

go-jsonnet-func

A collection of jsonnet native functions that can be easily used in tools written in Golang.

Supports the following functions for jsonnet:

  • sha256
  • parseUrl

Sprig functions are supported in experimental stage and can be added to the code generator to enable those.

The following Sprig functions are supported at the moment. This list would cover most of the Sprig functions in the future.

  • upper
  • snakecase
  • camelcase
  • kebabcase
  • decryptAES

Usage

The library can be used to extend jsonnet functionality offered by your application. To install run:

go get -u github.com/harsimranmaan/go-jsonnet-func

It can used in a sample program as shown in the example.