Encoders returns a cel.EnvOption to configure extended functions for string, byte, and object encodings. # Base64.Decode Decodes base64-encoded string to bytes. This function will return an error if the string input is not base64-encoded. base64.decode( ) -> Examples: base64.d
(options ...EncodersOption)
| 64 | // |
| 65 | // json.encode({'hello': 'world'}) // return '{"hello":"world"}' |
| 66 | func Encoders(options ...EncodersOption) cel.EnvOption { |
| 67 | l := &encoderLib{version: math.MaxUint32} |
| 68 | for _, o := range options { |
| 69 | l = o(l) |
| 70 | } |
| 71 | return cel.Lib(l) |
| 72 | } |
| 73 | |
| 74 | // EncodersOption declares a functional operator for configuring encoder extensions. |
| 75 | type EncodersOption func(*encoderLib) *encoderLib |