mirror of
https://github.com/hanzoai/sqlbuilder.git
synced 2026-10-01 00:37:42 +00:00
remove a call to StructField.IsExported as it is not in go1.13
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ func (sf *structFields) parse(t reflect.Type, mapper FieldMapperFunc, prefix str
|
||||
field := t.Field(i)
|
||||
|
||||
// Skip unexported fields that are not embedded structs.
|
||||
if !field.IsExported() && !field.Anonymous {
|
||||
if field.PkgPath != "" && !field.Anonymous {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user