I have a string and I want to replace every space in this string with a + I tired this by using:
tw.Text = strings.Replace(tw.Text, " ", "+", 1)
But that didn’t worked for me…any solutions?
For example the string could look like:
The answer of the universe is 42
Use
strings.ReplaceAllIf you’re using an older version of go (< 1.12), use
strings.Replacewith-1as limit (infinite)