go remove whitespace from string
randomString := " hello this is a test"
fmt.Println(strings.Replace(randomString, " ", "", -1))
>hellothisisatest
Are there any code examples left?
New code examples in category Go
randomString := " hello this is a test"
fmt.Println(strings.Replace(randomString, " ", "", -1))
>hellothisisatest