Replace

Strings
Both Server and Client
Both Mobile and PC

After replacing all the specified strings in the target string, output the new string

Declaration

func Replace(target string, oldValue string, newValue string) string
go

Parameters

Input

Name Type Description
Target String Target string
Old Value String The old string to replace
New Value String The new string to replace with

Return

Type Description
String The string done replacing