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)
| 728 | // 'my-principal-group' in request.auth.claims |
| 729 | // && request.auth.claims.iat > now - duration('5m') |
| 730 | func WrapAfterColumnLimit(wrapAfter bool) UnparserOption { |
| 731 | return func(opt *unparserOption) (*unparserOption, error) { |
| 732 | opt.wrapAfterColumnLimit = wrapAfter |
| 733 | return opt, nil |
| 734 | } |
| 735 | } |