mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-20 13:58:39 +00:00
read config from ./config
This commit is contained in:
parent
d1492ff896
commit
bc60976033
@ -21,7 +21,7 @@ type LogPipe struct {
|
||||
func main() {
|
||||
lp := LogPipe{}
|
||||
|
||||
fbytes, ferr := os.ReadFile("config.yaml")
|
||||
fbytes, ferr := os.ReadFile("./config/config.yaml")
|
||||
if ferr == nil {
|
||||
err := yaml.Unmarshal(fbytes, &lp)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user