aboutsummaryrefslogtreecommitdiffstats
path: root/internal/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config.go')
-rw-r--r--internal/config.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/internal/config.go b/internal/config.go
deleted file mode 100644
index 564adbe..0000000
--- a/internal/config.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package config
-
-import (
- "os"
-
- "gopkg.in/yaml.v3"
-)
-
-type Config struct {
- Server struct {
- Host string `yaml:"host"`
- Port string `yaml:"port"`
- } `yaml:"server"`
- Database struct {
- ConnString string `yaml:"connString"`
- } `yaml:"database"`
- Conference struct {
- ScheduleURL string `yaml:"scheduleURL"`
- } `yaml:"conference"`
- AcceptRegistrations bool `yaml:"acceptRegistrations"`
- BaseURL string `yaml:"baseURL"`
-}
-
-func ReadConfig(configPath string, dst *Config) error {
- config, err := os.ReadFile(configPath)
- if err != nil {
- return err
- }
-
- if err := yaml.Unmarshal(config, dst); err != nil {
- return err
- }
- return nil
-}