Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 826 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 826 Bytes

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.