2
0

Add more docs and explanation

This commit is contained in:
Jack Christensen
2013-07-30 17:53:59 -05:00
parent 3ca58c01fe
commit c6bf85bd63
2 changed files with 125 additions and 5 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ func init() {
var arrayEl *regexp.Regexp = regexp.MustCompile(`[{,](?:"((?:[^"\\]|\\.)*)"|(NULL)|([^,}]+))`)
// SplitArrayText
// SplitArrayText is used by array transcoders to split array text into elements
func SplitArrayText(text string) (elements []string) {
matches := arrayEl.FindAllStringSubmatch(text, -1)
elements = make([]string, 0, len(matches))