Installation
One command, zero external dependencies. Risor is a pure Go module.
Requirements
- Go 1.25 or later
Install the Module
go get github.com/deepnoodle-ai/risor/v2Verify the Installation
Confirm everything works with a quick sanity check:
package main
import (
"context"
"fmt"
"github.com/deepnoodle-ai/risor/v2"
)
func main() {
result, err := risor.Eval(context.Background(), `1 + 1`)
if err != nil {
panic(err)
}
fmt.Println(result) // 2
}Run it:
go run main.goIf you see 2, you're good to go.
Updating
Pull in the latest version at any time:
go get -u github.com/deepnoodle-ai/risor/v2Next Steps
- Getting Started: run your first script and explore the API
- Embedding Guide: integrating Risor in your Go application
- Language Overview: the Risor language syntax