📌  相关文章
📜  go remove whitespace from string - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.042000             🧑  作者: Mango

代码示例1
randomString := "  hello      this is a test"
fmt.Println(strings.Replace(randomString, " ", "", -1))

>hellothisisatest