Alvin Lin
/
Golang Basics
/
How to separate strings in Golang - strings.Fields
Search
How to separate strings in Golang - strings.Fields
Split words
import
(
"strings"
)
strings
.
Fields
(
"I am Alvin"
)
// ["I", "am", "Alvin"]