(name string, dt expr.DataType)
| 353 | } |
| 354 | |
| 355 | func goTypeRef(name string, dt expr.DataType) string { |
| 356 | // For a raw struct, no need to dereference |
| 357 | if isRawStruct(dt) { |
| 358 | return name |
| 359 | } |
| 360 | return "*" + name |
| 361 | } |
| 362 | |
| 363 | func isRawStruct(dt expr.DataType) bool { |
| 364 | if _, ok := dt.(*expr.Object); ok { |
no test coverage detected