GoStringstrings.Replace

Returns a copy of s with the first n occurrences of old replaced by new.

문법

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