Categorygithub.com/harsimranmaan/go-jsonnet-func
modulepackage
0.0.2
Repository: https://github.com/harsimranmaan/go-jsonnet-func.git
Documentation: pkg.go.dev

# README

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 you 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.

# Packages

No description provided by the author
No description provided by the author

# Functions

ParseURL returns a jsonnet function parseUrl which returns a dictionary representing the input url.
SHA256 returns a jsonnet function sha256 which returns the sha256 string representation of the input value.
No description provided by the author