(fieldName: string, fieldType: string, ctx: GoCodegenCtx)
| 2439 | } |
| 2440 | |
| 2441 | function goUnionFieldMarshalIsSet(fieldName: string, fieldType: string, ctx: GoCodegenCtx): string { |
| 2442 | if (goTypeIsNilable(fieldType, ctx)) { |
| 2443 | return `r.${fieldName} != nil`; |
| 2444 | } |
| 2445 | return "true"; |
| 2446 | } |
| 2447 | |
| 2448 | function goUnionFieldUnmarshalType(fieldType: string): string { |
| 2449 | if (goTypeIsPointer(fieldType)) { |
no test coverage detected
searching dependent graphs…