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

Function base64Encode

interpreter/interpreter_test.go:2755–2761  ·  view source on GitHub ↗
(val ref.Val)

Source from the content-addressed store, hash-verified

2753}
2754
2755func base64Encode(val ref.Val) ref.Val {
2756 str, ok := val.(types.String)
2757 if !ok {
2758 return types.MaybeNoSuchOverloadErr(val)
2759 }
2760 return types.String(base64.StdEncoding.EncodeToString([]byte(str)))
2761}
2762
2763func isConstQual(q Qualifier, val ref.Val) bool {
2764 c, ok := q.(ConstantQualifier)

Callers

nothing calls this directly

Calls 2

MaybeNoSuchOverloadErrFunction · 0.92
StringTypeAlias · 0.92

Tested by

no test coverage detected