MCPcopy Create free account
hub / github.com/cel-expr/cel-go / WrapAfterColumnLimit

Function WrapAfterColumnLimit

parser/unparser.go:658–663  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

656// 'my-principal-group' in request.auth.claims
657// && request.auth.claims.iat > now - duration('5m')
658func WrapAfterColumnLimit(wrapAfter bool) UnparserOption {
659 return func(opt *unparserOption) (*unparserOption, error) {
660 opt.wrapAfterColumnLimit = wrapAfter
661 return opt, nil
662 }
663}

Callers 1

TestUnparseFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUnparseFunction · 0.68