Go文字列strings.Replace

sのoldをnewに最大n回置換したコピーを返します。

문법

strings.Replace(s, old, new string, n int) string