Installation
Installing GoPotency is straightforward using Go modules.
Prerequisite
Section titled “Prerequisite”- Go 1.21 or higher (as we use the
slicespackage from the standard library).
Command
Section titled “Command”In your terminal, navigate to your project directory and run:
go get github.com/fco-gt/gopotencyImporting the package
Section titled “Importing the package”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