Skip to main content

strings.ReplaceAll

Replace all occurrences

strings.ReplaceAll(s: string, old: string, new: string) -> string

Arguments

NameType
sstring
oldstring
newstring

Example

{{ strings.ReplaceAll("hello", "l", "L") }}

Returns "heLLo".