Go Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

Replacing part of the string

Another very common task related to string processing is the replacement of the substring in a string. Go standard library provide the Replace function and Replacer type for the replacement of multiple strings at once.