Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package config

import (
"log"

"github.com/kelseyhightower/envconfig"
_ "github.com/kelseyhightower/envconfig"
"log"
)

var MyConfig Config
Expand All @@ -16,6 +17,7 @@ func ReadConfig() {
}

type Config struct {
DBDialect string `envconfig:"W0Q_DB_DIALECT" default:"sqlite3"`
DBPath string `envconfig:"W0Q_DB_PATH" default:"database.sqlite"`
LegalAddress string `envconfig:"W0Q_LEGAL_ADDRESS" default:"add your address here"`
LegalMail string `envconfig:"W0Q_LEGAL_MAIL" default:"add your email address here"`
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ require (
github.com/fsuhrau/anonymizer v0.0.0-20200405115256-d651fd4d024c
github.com/gin-gonic/gin v1.8.1
github.com/go-playground/validator/v10 v10.11.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/jinzhu/gorm v1.9.16
github.com/kelseyhightower/envconfig v1.4.0
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-sqlite3 v1.14.14 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gorm.io/driver/postgres v1.3.7
gorm.io/driver/sqlite v1.3.4
gorm.io/gorm v1.23.6
github.com/satori/go.uuid v1.2.1-0.20181016170032-d91630c85102 // indirekt
)
Loading