RuleFunc is a function type that implements the Rule interface. It allows anonymous functions and closures to be used directly as transform rules without defining a named type. All built-in rule constructors (AddWhere, AddColumn, etc.) return a RuleFunc internally. Example: rule := transform.Rule
func(stmt ast.Statement) error
| 64 | // return nil |
| 65 | // }) |
| 66 | type RuleFunc func(stmt ast.Statement) error |
| 67 | |
| 68 | // Apply implements the Rule interface by invoking the underlying function. |
| 69 | func (f RuleFunc) Apply(stmt ast.Statement) error { |
no outgoing calls
no test coverage detected