(goType: string | undefined)
| 379 | } |
| 380 | |
| 381 | function goOptionalFieldNeedsDereference(goType: string | undefined): boolean { |
| 382 | return goType === undefined || goTypeIsPointer(goType); |
| 383 | } |
| 384 | |
| 385 | function goTypeWithOptionalPointer(goType: string, ctx?: GoCodegenCtx): string { |
| 386 | return goTypeIsNilable(goType, ctx) ? goType : `*${goType}`; |
no test coverage detected
searching dependent graphs…