Learning Go, what a great language.
Is there a built-in means to remove the first item in an array? Kind of like PHP's array_shift
I have a string, "the brown fox jumps"
I've found strings.Fields()
which turns it into an array. I'd like to turn that string into two strings:
"the", "brown fox jumps"
words := strings.Fields(theFoxString)
firstWord := // unshift first word from words
otherWords := // join what's left of words with ' '
Thank you for your help!