Unit tests added for internal/config
This commit is contained in:
1 parent
09644d0691
commit
69620e5f7d
4 files changed
+631
No files matched your search
@@ -142,6 +142,8 @@ func mapOfValue(section reflect.Value) map[string]any {
|
||||
fv := section.FieldByIndex(f.index)
|
||||
if f.section {
|
||||
m[f.key] = mapOfValue(fv)
|
||||
} else if f.typ == durationType {
|
||||
m[f.key] = fv.Interface().(time.Duration).String()
|
||||
} else {
|
||||
m[f.key] = fv.Interface()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user