WithAllowCastArray specifies whether to allow casting to an array type.
(allow bool)
| 89 | |
| 90 | // WithAllowCastArray specifies whether to allow casting to an array type. |
| 91 | func WithAllowCastArray(allow bool) BuildOption { |
| 92 | return func(options *BuildOptions) { |
| 93 | options.AllowCastArray = allow |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // WithCastExprTo indicates that we need to the cast the generated expression to the target type |
| 98 | func WithCastExprTo(targetFt *types.FieldType) BuildOption { |
no outgoing calls