GetExportedName() try Conatins
@@ -43,8 +43,8 @@ func Atoi(s string) int {
// GetExportedName returns a deterministic and Go safe name for a C type. For
// example, "*__foo[]" will return "FooSlice".
func GetExportedName(field string) string {
- if strings.HasPrefix(field, "interface{}") ||
- strings.HasPrefix(field, "Interface{}") {
+ if strings.Contains(field, "interface{}") ||
+ strings.Contains(field, "Interface{}") {
return "Interface"
}
