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
Answered by : max-39i033q4ebmh
randomString := " hello this is a test"
fmt.Println(strings.Replace(randomString, " ", "", -1))
>hellothisisatest
Source : | Last Update : Fri, 11 Dec 20