Union is the type used to describe unions.
| 57 | |
| 58 | // Union is the type used to describe unions. |
| 59 | Union struct { |
| 60 | TypeName string |
| 61 | Values []*NamedAttributeExpr |
| 62 | // TypeKey is the discriminator field name for JSON marshaling (defaults to "type") |
| 63 | TypeKey string |
| 64 | // ValueKey is the value field name for JSON marshaling (defaults to "value") |
| 65 | ValueKey string |
| 66 | } |
| 67 | |
| 68 | // UserType is the interface implemented by all user type |
| 69 | // implementations. Plugins may leverage this interface to introduce |
nothing calls this directly
no outgoing calls
no test coverage detected