github.com/go-andiamo/splitter (go): Package splitter - Go package for splitting strings (aware of enclosing braces and quotes)  The problem with strings.Split is that it does not take into consideration that the string being split may contain enclosing braces and/or quotes (where the separator should not be considered where it's inside braces or quotes)  Take for example a string representing a slice of comma separated strings...  running strings.Split on that...  would yield 5 - instead of the desired 3  With splitter, the result would be different...  which yields the desired 3!  Note: The varargs, after the first separator arg, are the desired 'enclosures' (e.g. quotes, brackets, etc.) to be taken into consideration  While splitting, any enclosures specified are checked for balancing!
Keywords: go|golang|split|splitter|splitting|string