misc, docs: Move to golang 1.18
Hopefully this fixes some yucky things.
This commit is contained in:
@@ -277,9 +277,8 @@ func StructKindToFieldNameTypeMap(kind string) (map[string]*types.Type, error) {
|
||||
//}
|
||||
|
||||
// Skip unexported fields. These should never be mapped golang<->mcl.
|
||||
// TODO: Use StructField.IsExported() in golang 1.17
|
||||
//if !field.IsExported() {
|
||||
if field.PkgPath != "" {
|
||||
//if field.PkgPath != "" { // pre-golang 1.17
|
||||
if !field.IsExported() {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user