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:
@@ -437,7 +437,7 @@ func (s *Struct) Values(st interface{}) []interface{} {
|
||||
return s.ValuesForTag("", st)
|
||||
}
|
||||
|
||||
// Values returns a shadow copy of all fields tagged with tag in st.
|
||||
// ValuesForTag returns a shadow copy of all fields tagged with tag in st.
|
||||
func (s *Struct) ValuesForTag(tag string, value interface{}) (values []interface{}) {
|
||||
sf := s.structFieldsParser()
|
||||
v := reflect.ValueOf(value)
|
||||
|
||||
+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