gorun
script
gorun | script | |
---|---|---|
5 | 11 | |
935 | 5,070 | |
- | - | |
1.5 | 5.2 | |
about 1 year ago | 2 months ago | |
Go | Go | |
GNU General Public License v3.0 only | 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.
gorun
- Do people really use Go for system admin & DevOps tasks?
-
How to convert old tutorials that rely on “go get”?
It's great for quick iteration and other stuff where you want to build and run in one go. It's even been augmented to turn Go into a scripting-style language https://github.com/erning/gorun
-
With enough libraries, could Go be used where Java/C# and even Python would be the default choice?
This tool enables this behavior, fwiw. Haven’t used it, so not sure how it works in the real-world
-
Scripting with Go
I'll have to check this out properly later. 10 years ago go devs rejected the idea of introducing support hashbangs and now we're left with having to use gorun[0], meaning, people are unlikely to use go for script.
I hope the go devs will reconsider. I'd love to be able to use go for scripting. But as it stands, it's a sad state of affairs because you have to rely on hacks.
[0] https://github.com/erning/gorun/
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?
golang-jvm
Hey - HTTP load generator, ApacheBench (ab) replacement
bombardier - Fast cross-platform HTTP benchmarking tool written in Go
Go Metrics - Go port of Coda Hale's Metrics library
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
webhook - webhook is a lightweight incoming webhook server to run shell commands
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
grapes - easy way to distribute commands over ssh.
kubernetes - Production-Grade Container Scheduling and Management
Gitea - Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
Boom - HTTP(S) load generator, ApacheBench (ab) replacement, written in Go
GVM - Go Version Manager