Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 authored Feb 9, 2021
1 parent 1b8dbdd commit ca96041
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import (
)

type Config struct {
Port int `yaml:"port"`
Port int `yaml:"port"`
DataPath string `yaml:"dataPath"`
}

func LoadConfig(path string) (*Config, error) {
cfg := Config{
Port: 4659,
DataPath: "./data",
}

file, err := ioutil.ReadFile(path)
Expand Down

0 comments on commit ca96041

Please sign in to comment.