Skip to content

Installation

Installing GoPotency is straightforward using Go modules.

  • Go 1.21 or higher (as we use the slices package from the standard library).

In your terminal, navigate to your project directory and run:

Terminal window
go get github.com/fco-gt/gopotency

You can then import the core package and the storage backend you want to use:

import (
"github.com/fco-gt/gopotency"
"github.com/fco-gt/gopotency/storage/memory"
)

Depending on the storage backend you choose, you might need to install additional drivers:

  • Redis: go get github.com/redis/go-redis/v9
  • GORM: go get gorm.io/gorm
  • SQLite (Pure Go): go get github.com/glebarez/sqlite
  • Echo Middleware: go get github.com/labstack/echo/v4
  • Fiber Middleware: go get github.com/gofiber/fiber/v2