Last active
July 13, 2018 17:13
-
-
Save jdkato/a0cb93c8fc16e98527f9bb5b4ff299a7 to your computer and use it in GitHub Desktop.
`prose` v2.0.0 example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "gopkg.in/jdkato/prose.v2" | |
| ) | |
| func main() { | |
| doc, _ := prose.NewDocument("This is a sentence.") | |
| for _, token := range doc.Tokens() { | |
| fmt.Println(token.Text) | |
| // [This, is, a, sentence, .] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment