strings.Fields()
I cannot believe I never saw this before. If you are using strings.Split(foo," ") you likely have substantial bugs. Use strings.Fields() instead.
strings.Split(foo," ")
#golang #strings #tips