go-jsonnet is a pure Go implementation of the Jsonnet data templating language, which extends JSON with variables, functions, imports, and a standard library so you can generate complex configuration safely. Instead of hand-maintaining massive JSON files, you write concise, reusable templates that evaluate to JSON or YAML, with deterministic semantics and rich error messages. The repository ships both an embeddable VM for Go programs and a command-line interpreter, making it easy to integrate templating into build systems, CLIs, and services. Import paths and custom resolvers let you structure large configuration trees across directories or remote sources, while top-level arguments and external variables parameterize builds per environment. Native functions can be registered from Go to expose domain-specific helpers without forking the language. Tooling such as a formatter and linter-friendly errors encourages clean, consistent templates that scale across teams.

Features

  • Embeddable Go VM with a simple API for EvaluateSnippet and EvaluateFile
  • CLI interpreter with support for YAML output, top-level args, and external variables
  • Configurable importers and search paths for modular template trees
  • Native function hooks to extend Jsonnet with Go helpers
  • Standard library for sets, strings, objects, and functional composition

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Go Jsonnet

Go Jsonnet Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Go Jsonnet!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2025-10-10