This will retrieve the library.

    Note Badger does not directly use CGO but it relies on for compression and it requires gcc/cgo. If you wish to use badger without gcc/cgo, you can run which will download badger without the support for ZSTD compression algorithm.

    This will install the badger command line utility into your $GOBIN path.

    Choosing a version

    BadgerDB is a pretty special package from the point of view that the most important change we can make to it is not on its API but rather on how data is stored on disk.

    • New major versions are released when the data format on disk changes in an incompatible way.
    • New patch versions are released when there’s no changes to the data format nor the API.

    Following these rules:

    • v1.5.0 and v1.6.0 can be used on top of the same files without any concerns, as their major version is the same, therefore the data format on disk is compatible.

    For a longer explanation on the reasons behind using a new versioning naming schema, you can read