package config import "github.com/kelseyhightower/envconfig" type Database struct { DatabaseDriver string `split_words:"true"` DatabasePath string `split_words:"true"` MigrationsPath string `default:"head" split_words:"true"` LibsqlConnectorType string `default:"local" split_words:"true"` } func DataStore() Database { var db Database envconfig.MustProcess("flux", &db) return db }