Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Nov 12, 2023
1 parent 14c5efe commit b7999aa
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func DefaultConfig() *Config {
Path: "log.ttrace",
},
Name: "time_trace",

Check failure on line 75 in config/config.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
Users: []User{},
}
rootUser := User{
Name: "root",
Expand All @@ -92,18 +91,7 @@ func LoadFromFile(path string) *Config {
}
defer file.Close()

config := &Config{
Name: "",
Server: Server{
IP: "",
Port: "",
},
Log: Log{
WriteToFile: false,
Path: "",
},
Users: []User{},
}
config := &Config{}

Check failure on line 94 in config/config.go

View workflow job for this annotation

GitHub Actions / lint

config.Config is missing fields Name, Server, Log, Users (exhaustruct)

decoder := yaml.NewDecoder(file)

Expand Down

0 comments on commit b7999aa

Please sign in to comment.