fix for go1.16 and possible sigsev

This commit is contained in:
Christian Goll
2022-09-19 17:10:06 +02:00
parent 8e0fd64c7e
commit c3416de3cb
2 changed files with 2 additions and 1 deletions

View File

@@ -512,7 +512,7 @@ func getYamlString(myType reflect.StructField, excludeList []string) (string, bo
ymlStr += ": {string}"
} else if myType.Type == reflect.TypeOf(map[string]string{}) {
ymlStr += ": {key: value}"
} else if myType.Type.Kind() == reflect.Pointer {
} else if myType.Type.Kind() == reflect.Ptr {
ymlStr += ":"
}
return ymlStr, true