JPL - JSON Processing Language - Golang implementation
package main
import (
"fmt"
gojpl "github.com/jplorg/jpl/go"
)
func main() {
inputs := []any{nil}
results, err := gojpl.Run(`"Hello, 🌎!"`, inputs, nil)
if err != nil {
panic(err)
}
fmt.Println(results...)
}
The package provides a CLI REPL, which can be used as a language playground.
> jpl-repl # or `go run github.com/jplorg/jpl/go/jpl-repl`
Welcome to JPL.
Type ":h" for more information.
> "Hello, \('🌎', 'JPL')!"
"Hello, 🌎!", "Hello, JPL!"
>
TODO: inform about the runtime API, functions, JPLTypes and different error types