gomodrun alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view gomodrun alternatives based on common mentions on social networks and blogs.
-
JuiceFS
JuiceFS is a distributed POSIX file system built on top of Redis and S3. -
JSON-to-Go
Translates JSON into a Go type in your browser instantly (original) -
kube-prompt
An interactive kubernetes client featuring auto-complete. -
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
Peanut
๐บ Deploy Databases and Services Easily for Development and Testing Pipelines. -
golang-tutorials
Golang Tutorials. Learn Golang from Scratch with simple examples. -
xdg-go
Go implementation of the XDG Base Directory Specification and XDG user directories -
rts
RTS: request to struct. Generates Go structs from JSON server responses. -
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
golang-ipc
Golang Inter-process communication library for Window, Mac and Linux. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
zb
an opinionated repo based tool for linting, testing and building go source -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
gotestdox
A tool for formatting Go test results as readable documentation -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
An exit strategy for go routines.
An exit strategy for go routines -
go-james
James is your butler and helps you to create, build, debug, test and run your Go projects -
generator-go-lang
A Yeoman generator to get new Go projects started. -
Paymail Inspector
:money_with_wings: CLI app for interacting with paymail service providers -
go-sanitize
:bathtub: Golang library of simple to use sanitation functions -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
rescached
[mirror] Resolver (DNS) cache daemon. See https://sr.ht/~shulhan/rescached [Moved to: https://github.com/shuLhan/rescached] -
go-whatsonchain
:link: Unofficial golang implementation for the WhatsOnChain API -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
Proofable
General purpose proving framework for certifying digital assets to public blockchains -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules. -
ciiigo
[mirror] Go static website generator with asciidoc markup language -
redispubsub
Redis Streams queue driver for https://godoc.org/gocloud.dev/pubsub package -
go-slices
Helper functions for the manipulation of slices of all types in Go -
IP2Location.io Command Line
IP2Location.io command line to query IP geolocation data from IP2Location.io API
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of gomodrun or a related project?
README
[gomodrun](assets/banner.jpg)
The forgotten go tool that executes and caches binaries included in go.mod files. This makes it easy to version cli tools in your projects such as golangci-lint
and ginkgo
that are versioned locked to what you specify in go.mod
. Binaries are cached by go version and package version.
Example
# Run a linter
gomodrun golangci-lint run
# Convert a JSON object to a Go struct, properly passing in stdin.
echo example.json | gomodrun gojson > example.go
# Specifiy alternative root directory containing a go.mod and tools file.
gomodrun -r ./alternative-tools-dir golangci-lint run
# Clean your .gomodrun folder of unused binaries.
gomodrun --tidy
Installation
homebrew (OSX / Linux):
brew install dustinblackman/tap/gomodrun
scoop (Windows):
$ scoop bucket add dustinblackman https://github.com/dustinblackman/scoop-bucket.git
$ scoop install gomodrun
deb/rpm/apk (Linux):
Download the .deb
, .rpm
or .apk
from the releases page and
install with dpkg -i
, rpm -i
, or apk add --allow-untrusted
respectively.
nix (Linux):
nix-env -f '<nixpkgs>' -iA nur.repos.dustinblackman.gomodrun
manually:
Download the pre-compiled binaries from the releases page and copy to the desired location.
go/master branch:
go get -u github.com/dustinblackman/gomodrun/cmd/gomodrun
Usage
gomodrun works by using a tools.go
(or any other name) file that sits in the root of your project that contains all the CLI dependencies you want bundled in to your go.mod
. Note the // +build tools
at the top of the file is required, and allows you to name your tools file anything you like.
tools.go
// +build tools
package myapp
import (
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/onsi/ginkgo/ginkgo"
)
Run go build tools.go
to add the dependencies to your go.mod
. The build is expected to fail.
CLI
You can run your tools by prefixing gomodrun
. A binary will be built and cached in .gomodrun
in the root of your project, allowing all runs after the first to be nice and fast.
gomodrun golangci-lint run
Programmatically
You can also use gomodrun
as a library.
package main
import (
"os"
"github.com/dustinblackman/gomodrun"
)
func main() {
exitCode, err := gomodrun.Run("golangci-lint", []string{"run"}, &gomodrun.Options{
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
Env: os.Environ(),
PkgRoot: "",
})
}
[License](./LICENSE)
MIT
*Note that all licence references and agreements mentioned in the gomodrun README section above
are relevant to that project's source code only.