read config from ./config

This commit is contained in:
Messede Degod 2023-11-02 22:49:59 +05:30 committed by GitHub
parent d1492ff896
commit bc60976033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {