go-plugin
script
Our great sponsors
go-plugin | script | |
---|---|---|
30 | 11 | |
4,960 | 5,070 | |
2.0% | - | |
6.7 | 5.2 | |
about 1 month ago | 2 months ago | |
Go | Go | |
Mozilla Public License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-plugin
-
Show HN: Togomak – declarative pipeline orchestrator based on HCL and Terraform
I am looking forward to a mix of both - I am hoping to add a concept called "operator" which would be a go-plugin [1], just like terraform providers, but build backends. So, someone would be able to, say, write a Slack plugin (in Go, or anything over RPC) which sends a message once a build is complete - like Jenkins/GitHub actions, or just scripts that we can reuse like GitLab CI through `modules`.
Perhaps a new registry where we can push custom modules and providers (operators in this case), I'm curious to know about if we have any existing implementations we could reuse for the registry.
[1]: https://github.com/hashicorp/go-plugin
- Show HN: Clace – Platform for secure internal web applications
- Wazero: Zero dependency WebAssembly runtime written in Go
-
referencing packages on the internet and using go plugin
I'd recommend looking into a different approach for plugins such as hashicorp/go-plugin (which uses multiple process PIDs and RPC communication between them) or traefik/yaegi (which implements a Go-compatible scripting language that can be interpreted at runtime and which still supports most Go modules).
- Can Go dynamically load library module at runtime?
-
Binary packages alternative
You'll never fully protect your code from someone who's dead-set on reverse-engineering it, however, you can use https://github.com/hashicorp/go-plugin or a similar RPC technique, which will let you ship binary plugins and will also be less fragile and janky compared to something made with `-buildmode=plugin`.
- Trying to build Rust Plugin System
-
How would you guys support plugins in a Go app? (or any other compiled language for that matter)
The plugin system that hashicorp uses for all their projects works very well. It's essentially a local RPC implementation. https://github.com/hashicorp/go-plugin
- Change go code behaviour at runtime
-
Is the documentation for making non-go plugins in the go-plugin repo outdated?
can you try older go-plugin versions? The only major change in v1.4.4 was a bugfix for automtls. https://github.com/hashicorp/go-plugin/blob/master/CHANGELOG.md
script
-
GNU Parallel, where have you been all my life?
I use Go. You can run scripts with go run directly, and this package makes shell tasks easy: https://github.com/bitfield/script
-
Scripting with Go: A Modest Proposal
If you're not deeply familiar with Go there is one detail missing from this post (though it's in the script README) - what a complete program looks like. Here's the example from https://github.com/bitfield/script#a-realistic-use-case
package main
- 'script' is for writing shell-like pipelines in Go
- script
-
Some Useful Patterns for Go's os/exec
Imho also worth mentioning: https://github.com/bitfield/script
-
Is there anything golang similar to python plumbum?
I would say bitfield/script is the closest thing to plumbum. You should check out this article written by the author.
-
Change go code behaviour at runtime
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.
-
Planning to learn Go, does it have this feature?
Parallel to my other comment, u/Akirapearl, if you find yourself getting annoyed at Go’s system-language focus, you might find John’s “script” Go library useful: https://github.com/bitfield/script
- DevOps Junior, Why is BASH something I need to learn?
-
Scripting with Go
It took me a while to find the link to the library "script" and it's repo - https://github.com/bitfield/script
What are some alternatives?
wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
Hey - HTTP load generator, ApacheBench (ab) replacement
OS-NVR - OS-NVR is a lightweight extensible CCTV system. Mirror of Codeberg.
bombardier - Fast cross-platform HTTP benchmarking tool written in Go
go-plugin-benchmark - Benchmark comparing the go plugin package to other plugin implementations
Go Metrics - Go port of Coda Hale's Metrics library
rust - Empowering everyone to build reliable and efficient software.
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
vopono - Run applications through VPN tunnels with temporary network namespaces
webhook - webhook is a lightweight incoming webhook server to run shell commands
os-nvr
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.