misc, docs: Move to golang 1.18

Hopefully this fixes some yucky things.
This commit is contained in:
James Shubin
2022-08-16 20:15:12 -04:00
parent d547c39a16
commit aff6331211
11 changed files with 108 additions and 70 deletions

View File

@@ -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
}