
-
The leader is almost for certain https://github.com/hashicorp/go-plugin which uses RPC. This prevents some of the binary compatibility issues from the standard library option, operating system issues from the standard library option, and it is in use by lots of large projects from Terraform to Packer, Nomad, and Vault.
-
Nutrient
Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
-
yeah something like grule or https://github.com/bilibili/gengine , how these applications change beahviour at runtime. Don't want to use ANTLR.
-
For JavaScript syntax, https://github.com/dop251/goja is the most mature and featureful. It operates between Go and the scripting engine pretty well. They still need to implement generators before moving on to async/await and proper module support, but they have a lot of other advanced es6 level features such as classes and format strings. There are soem big consumers of this--the biggest might be Grafana K6, or at least they contribute back a bit. Most of the work (like many small projects) comes from one guy that has a real job, but he's slowly yet steadily made improvements and stuck to following standards for many years now.
-
For a Python-like syntax, https://github.com/google/starlark-go is the language used in Babel. It's very mature, but since it is used in a massive mature project with a specific purpose, it doesn't move fast or drift from the spec of its Java-based sibling. It doesn't have exception try except blocks or some other features you might expect, but for short extension logic, it might be exactly what you want with the stability you can depend upon.
-
There are lua and Go-script options. My impression is that a few are well accepted but perhaps just a little less widely used than the first two. I cannot speak from personal experience on them. Shopify has a Lua 5.2 port: https://github.com/Shopify/go-lua and I know https://github.com/bitfield/script is one of the Go-like scripting languages, but I think it's more for a shell script replacement than embedding.
-
There are lua and Go-script options. My impression is that a few are well accepted but perhaps just a little less widely used than the first two. I cannot speak from personal experience on them. Shopify has a Lua 5.2 port: https://github.com/Shopify/go-lua and I know https://github.com/bitfield/script is one of the Go-like scripting languages, but I think it's more for a shell script replacement than embedding.
-
There are totally different things like https://github.com/d5/tengo but I don't know much about the docs, communities, or viability of them. Some like this one look very active and healthy. It might be worth considering.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
expr
Discontinued Expression language and expression evaluation for Go [Moved to: https://github.com/expr-lang/expr] (by antonmedv)
I think a number of people use the expr expression language, but I don't know how much functionality it has and how much you need. https://github.com/antonmedv/expr
-
https://github.com/traefik/yaegi is also a good option
Related posts
-
The Docker Ecosystem Explained
-
Go is my hammer, and everything is a nail
-
Vendoring, or go mod vendor: What Is It?
-
GoLand 2023.3 is out. It features support for Dev Containers (early access), new refactorings, asdf support, code-insight for custom string functions, and many more
-
How to containerize your Go app in 10 minutes!