Categorygithub.com/pschlump/pw
repositorypackage
0.4.9
Repository: https://github.com/pschlump/pw.git
Documentation: pkg.go.dev

# README

pw: parse words

license

This is for parsing a string into a set of words. For Example:

import "github.com/pschlump/pw"

/* ... */

func ParseLineIntoWords(line string) []string {
	Pw := pw.NewParseWords()
	Pw.SetOptions("C", true, true)
	Pw.SetLine(line)
	rv := Pw.GetWords()
	return rv
}

Will take a line like this one and return an array of words.