Go string replacement with replace function
You can replace a sub string from a string through replace function or string package in Go. replace function required 4 string parameter to make replacement on the string first parameter is whole string, second parameter old string which need to be replaced, third parameter is new string with you want to replace old string and fourth param the number of replacements (use -1 to replace all)