modver alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view modver 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) -
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 -
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. -
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. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
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. -
An exit strategy for go routines.
An exit strategy for go routines -
generator-go-lang
A Yeoman generator to get new Go projects started. -
import "github/shuLhan/share"
A collection of libraries and tools written in Go; including DNS, email, git ini file format, HTTP, memfs (embedding file into Go), paseto, SMTP, TOTP, WebSocket, XMLRPC, and many more. -
go-james
James is your butler and helps you to create, build, debug, test and run your Go projects -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
go-sanitize
:bathtub: Golang library of simple to use sanitation functions -
go-whatsonchain
:link: Unofficial golang implementation for the WhatsOnChain API -
gomodrun
The forgotten go tool that executes and caches binaries included in go.mod files. -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
Proofable
General purpose proving framework for certifying digital assets to public blockchains -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
go-slices
Helper functions for the manipulation of slices of all types in Go -
redispubsub
Redis Streams queue driver for https://godoc.org/gocloud.dev/pubsub package -
MessageBus implementation for CQRS projects
CQRS Implementation for Golang language -
go-pipl
:family_man_woman_boy: Unofficial golang implementation for the pipl.com search API -
go-mattercloud
:cloud: Unofficial Go implementation for the MatterCloud API
Clean code begins in your IDE with SonarLint
* 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 modver or a related project?
README
Modver
This is modver, a Go package and command that helps you obey semantic versioning rules in your Go module.
It can read and compare two different versions of the same module, from two different directories, or two different Git commits. It then reports whether the changes require an increase in the major-version number, the minor-version number, or the patchlevel.
Installation and usage
Install the modver
command like this:
go install github.com/bobg/modver/cmd/[email protected]
Assuming the current directory is the root of a cloned Git repository, you can run it like this:
$ modver -git .git HEAD~1 HEAD
to tell what kind of version-number change is needed for the latest commit.
The -git .git
gives the path to the repository’s info;
it can also be something like https://github.com/bobg/modver
.
The arguments HEAD~1
and HEAD
specify two Git revisions to compare;
in this case, the latest two commits on the current branch.
These could also be tags or commit hashes.
Modver also has a simple API for use from within Go programs.
Semantic versioning
Briefly, a major-version bump is needed for incompatible changes in the public API, such as when a type is removed or renamed, or parameters or results are added to or removed from a function. Old callers cannot expect to use the new version without being updated.
A minor-version bump is needed when new features are added to the public API, like a new entrypoint or new fields in an existing struct. Old callers can continue using the new version without being updated, but callers depending on the new features cannot use the old version.
A patchlevel bump is needed for most other changes.
The result produced by modver is the minimal change required.
The actual change required may be greater.
For example,
if a new method is added to a type,
this function will return Minor
.
However, if something also changed about an existing method that breaks the old contract -
it accepts a narrower range of inputs, for example,
or returns errors in some new cases -
that may well require a major-version bump,
and this function can't detect those cases.
You can be assured, however,
that if this function returns Major
,
a minor-version bump won't suffice,
and if this function returns Minor
,
a patchlevel bump won't suffice,
etc.
The modver
command
(in the cmd/modver
subdirectory)
can be used,
among other ways,
to test that each commit to a Git repository increments the module’s version number appropriately.
This is done for modver itself using GitHub Actions,
here.
(Note that the standard actions/[email protected]
action,
for cloning a repository during GitHub Actions,
creates a shallow clone with just one commit’s worth of history.
For the usage here to work,
you’ll need more history:
at least two commit’s worth and maybe more to pull in the latest tag for the previous revision.
The clone depth can be overridden with the fetch-depth
parameter,
which modver does here.)