You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux-feed/config/config.go

23 lines
230 B
Go

package config
import (
"log"
"github.com/joho/godotenv"
)
type Config struct {
Database
}
func New() *Config {
err := godotenv.Load()
if err != nil {
log.Println(err)
}
return &Config{
Database: DataStore(),
}
}