DisableIfOperator disables the `if ... else ...` operator syntax so a custom function named `if(...)` can be used without conflicts.
()
| 112 | // DisableIfOperator disables the `if ... else ...` operator syntax so a custom |
| 113 | // function named `if(...)` can be used without conflicts. |
| 114 | func DisableIfOperator() Option { |
| 115 | return func(c *conf.Config) { |
| 116 | c.DisableIfOperator = true |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | // WarnOnAny tells the compiler to warn if expression return any type. |
| 121 | func WarnOnAny() Option { |
no outgoing calls
searching dependent graphs…