Skip to content

Tamarin

Tamarin is an embedded scripting language for Go projects.

Integrating Tamarin into your Go program or library provides extensibility. You enable users of your application to extend and modify its functionality without recompiling.

You may also find that the Tamarin CLI is handy for command line scripting, thanks to the single binary distribution, handy built-in functions, and convenient syntax.

["welcome", "to", "tamarin", "👋"] | strings.join(" ")

Use Cases

  • Allow users of your Go program to customize event processing.
  • Add customization hooks to any CLI written in Go.
  • Enable users of your library to write scripts that call methods on your Go structs.
  • Add dynamic behaviors to a Go web server to customize initialization or request handling.
  • Extend game engines with a scripting interface.
  • Sandbox execution of user scripts in a SaaS application.

Why Choose Tamarin?

There are already some really handy embedded scripting languages for Go (visit awesome-go). Tamarin is different in a few important ways and you can consider whether this makes it a good match for your project:

  • General purpose, but with built-in capabilities for HTTP requests and more.
  • Familiar syntax for Go and Python developers.
  • Exposes a portion of the Go standard library to scripts.
  • Expressive and intuitive list, map, string, set, and time data types.
  • Pipe expressions to easily express processing pipelines.
  • First-class error handling mechanisms.
  • Easily customizable built-in functions.

Getting Started

Head over to Quick Start for information on how to start using Tamarin as a CLI or a library. There are also a variety of examples on the Github that demonstrate using Tamarin as a library.