diff --git a/realy/config/config.go b/realy/config/config.go index 4216577..d7d3fb7 100644 --- a/realy/config/config.go +++ b/realy/config/config.go @@ -8,6 +8,7 @@ import ( "reflect" "sort" "strings" + "time" "go-simpler.org/env" @@ -132,7 +133,7 @@ func EnvKV(cfg any) (m KVSlice) { switch v.(type) { case string: val = v.(string) - case no, bo: + case no, bo, time.Duration: val = fmt.Sprint(v) case []string: arr := v.([]string) diff --git a/realy/version b/realy/version index 2cafd7f..917b30e 100644 --- a/realy/version +++ b/realy/version @@ -1 +1 @@ -v1.2.36 \ No newline at end of file +v1.2.37 \ No newline at end of file