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

Function replace

ext/strings.go:731–733  ·  view source on GitHub ↗
(str, old, new string)

Source from the content-addressed store, hash-verified

729}
730
731func replace(str, old, new string) (string, error) {
732 return strings.ReplaceAll(str, old, new), nil
733}
734
735func replaceN(str, old, new string, n int64) (string, error) {
736 return strings.Replace(str, old, new, int(n)), nil

Callers 1

CompileOptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected