mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-16 03:48:42 +00:00
read config from ./config
This commit is contained in:
parent
41bbf128b6
commit
0a00127f5c
@ -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