Skip to content

Installation

Zinc is a normal Go module.

  • Go 1.25 or newer
  • An existing Go module, or a new one created with go mod init
Terminal window
go get github.com/0mjs/zinc

Most applications also use Zinc’s first-party middleware package:

import (
"github.com/0mjs/zinc"
"github.com/0mjs/zinc/middleware"
)

The middleware package is part of the same module, so no extra install command is needed.

For a new project:

Terminal window
mkdir hello-zinc
cd hello-zinc
go mod init example.com/hello-zinc
go get github.com/0mjs/zinc

Then create main.go and continue with the Quickstart.

Use the normal Go tooling to inspect the selected version:

Terminal window
go list -m github.com/0mjs/zinc