risor
script
risor | script | |
---|---|---|
8 | 12 | |
565 | 5,116 | |
9.6% | - | |
9.0 | 5.2 | |
9 days ago | 15 days ago | |
Go | Go | |
Apache 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.
risor
-
Risor v1.4.0: write scripts for K8s, Vault, and the Go ecosystem
GitHub project here:
https://github.com/risor-io/risor
-
Scripting with Go: A Modest Proposal
Take a look at Risor and its pipes capability.
https://github.com/risor-io/risor#quick-example
Stay in the Go ecosystem, but gain pipes, Python-like f-strings, and more.
(I'm the author)
- Risor: Fast and flexible scripting for Go developers and DevOps.
-
Risor – Fast and flexible scripting for Go developers and DevOps
All good questions. Risor hasn't really fully "launched" yet and its documentation is incomplete at this point.
GCP and Azure to be added in the coming weeks. Here's a related GitHub issue:
https://github.com/risor-io/risor/issues/65
For now, you can browse the available modules in the source tree here:
https://github.com/risor-io/risor/tree/main/modules
Please open an issue on GH if you have other module requests! MySQL is a logical one but I was waiting for someone to ask :-)
- Risor: Fast and flexible embedded scripting language for Go projects
-
Zygomys: Embedded Scripting Language for Go
Nice. Somehow this is the first time I'm seeing Zygomys.
If you're not in love with the lisp syntax, you might want to take a look at Risor as well.
https://github.com/risor-io/risor#quick-example
```
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?
shtlang - A toy scripting dynamic imperative programming language.
Hey - HTTP load generator, ApacheBench (ab) replacement
golisp - A Scheme-flavored Lisp implemented in Go.
bombardier - Fast cross-platform HTTP benchmarking tool written in Go
zygomys - Zygo is a Lisp interpreter written in 100% Go. Central use case: dynamically compose Go struct trees in a zygo script, then invoke compiled Go functions on those trees. Makes Go reflection easy.
Go Metrics - Go port of Coda Hale's Metrics library
expr - Expression language and expression evaluation for Go [Moved to: https://github.com/expr-lang/expr]
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
cel-go - Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
webhook - webhook is a lightweight incoming webhook server to run shell commands
stream - Package stream provides filters that can be chained together in a manner similar to Unix pipelines.
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.