fix print with private interface

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-09-17 20:26:31 +02:00
parent 2d01c1639f
commit 94fd83ecce
+3 -1
View File
@@ -57,7 +57,9 @@ func PrintStruct(settings github_recon_settings.Settings, s any, indent int) {
for i := 0; i < v.NumField(); i++ {
field := t.Field(i).Name
value := v.Field(i)
if !value.CanInterface() {
continue
}
if !value.IsValid() || (value.Kind() == reflect.String && value.String() == "") {
continue
}