WrapAfterColumnLimit dictates whether to insert a newline before or after the specified operator when word wrapping is performed. Example usage: Unparse(expr, sourceInfo, WrapOnColumn(40), WrapOnOperators(Operators.LogicalAnd), WrapAfterColumnLimit(false)) This will insert a newline immediately
(wrapAfter bool)
| 656 | // 'my-principal-group' in request.auth.claims |
| 657 | // && request.auth.claims.iat > now - duration('5m') |
| 658 | func WrapAfterColumnLimit(wrapAfter bool) UnparserOption { |
| 659 | return func(opt *unparserOption) (*unparserOption, error) { |
| 660 | opt.wrapAfterColumnLimit = wrapAfter |
| 661 | return opt, nil |
| 662 | } |
| 663 | } |