From f02d5be680299411eba997363cafe50d8c9d5d53 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 22 Dec 2023 16:08:54 +0100 Subject: [PATCH] Update 'parser' struct annotation in config.go The 'parser' struct in config.go has been updated with Fig configuration annotation. This allows ease of configuration as it sources the configuration options from the environment, making the code cleaner and more flexible. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index f7d3b1a..c5618de 100644 --- a/config.go +++ b/config.go @@ -45,7 +45,7 @@ type Config struct { Parser struct { Type string `fig:"type" validate:"required"` Timeout time.Duration `fig:"timeout" default:"500ms"` - } + } `fig:"parser"` internal struct { ParserType parsesyslog.ParserType }