// Split partitions a string into a slice of strings.

Split partitions a string into a slice of strings.
// Split partitions a string into a slice of strings .
func Split(s string) ([]string, error) {
	l := NewLexer(strings.NewReader(s))
	subStrings := make([]string, 0)
	for {
		word, err := l.Next()
		if err != nil {
			if err == io.EOF {
				return subStrings, nil
			}
			return subStrings, err
		}
		subStrings = append(subStrings, word)
	}
}
func Split ( s string ) ( [ ] string , error ) { l := NewLexer ( strings . NewReader ( s ) ) subStrings := make ( [ ] string , 0 ) for { word , err := l . Next ( ) if err != nil { if err == io . EOF { return subStrings , nil } return subStrings , err } subStrings = append ( subStrings , word ) } }
Split partitions a string into a slice of strings.
Split partitions a string into a slice of strings .