Firstly, you need to create a captcha table, migration.
$ go get clevergo.tech/captchas/stores/postgresstore
import (
"clevergo.tech/captchas/stores/dbstore"
"clevergo.tech/captchas/stores/postgresstore"
_ "github.com/lib/pq"
)
db, err := sql.Open("postgres", "")
if err != nil {
// ...
}
store := postgresstore.New(
db,
dbstore.Expiration(10*time.Minute), // captcha expiration, optional.
dbstore.GCInterval(time.Minute), // garbage collection interval to delete expired captcha, optional.
dbstore.TableName("captchas"), // table name, optional.
dbstore.Category("default"), // category, optional.
)