How to separate strings in Golang - strings.Fields

Split words

import (
	"strings"
)

strings.Fields("I am Alvin")
// ["I", "am", "Alvin"]