Go Remove Whitespace From String

[Solved] Go Remove Whitespace From String | Swift - Code Explorer | yomemimo.com
Question : go remove whitespace from string

Answered by : max-39i033q4ebmh

randomString := " hello this is a test"
fmt.Println(strings.Replace(randomString, " ", "", -1))
>hellothisisatest

Source : | Last Update : Fri, 11 Dec 20

Answers related to go remove whitespace from string

Code Explorer Popular Question For Swift