WithTypeFlags sets the type flags for the `EvalContext`.
(flags types.Flags)
| 110 | |
| 111 | // WithTypeFlags sets the type flags for the `EvalContext`. |
| 112 | func WithTypeFlags(flags types.Flags) EvalCtxOption { |
| 113 | return func(s *evalCtxState) { |
| 114 | s.typeCtx = s.typeCtx.WithFlags(flags) |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | // WithLocation sets the timezone info for the `EvalContext`. |
| 119 | func WithLocation(loc *time.Location) EvalCtxOption { |