LambdaFormatter defines formatting rules for lambda expressions
| 6 | |
| 7 | // LambdaFormatter defines formatting rules for lambda expressions |
| 8 | type LambdaFormatter struct { |
| 9 | SpacingAroundArrow bool // Add spaces around => or -> (default: true) |
| 10 | SpaceAfterPipe bool // Add space after opening | (default: false) |
| 11 | SpaceBeforePipe bool // Add space before closing | (default: false) |
| 12 | } |
| 13 | |
| 14 | // NewLambdaFormatter creates a new lambda formatter with default settings |
| 15 | func NewLambdaFormatter() *LambdaFormatter { |
nothing calls this directly
no outgoing calls
no test coverage detected