ConstExpr defines func expression as constant. If all argument to this function is constants, then it can be replaced by result of this func call on compile step.
(fn string)
| 57 | // ConstExpr defines func expression as constant. If all argument to this function is constants, |
| 58 | // then it can be replaced by result of this func call on compile step. |
| 59 | func ConstExpr(fn string) Option { |
| 60 | return func(c *conf.Config) { |
| 61 | c.ConstExpr(fn) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // AsAny tells the compiler to expect any result. |
| 66 | func AsAny() Option { |
searching dependent graphs…