Skip to content

mdigger/wstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple text statistic library

Go Reference

Library for quick counting the simplest statistics on the text:

  • the total number of characters,
  • the number of spaces and separators,
  • the number of punctuation symbols,
  • the number of digits,
  • the number of words,
  • allows you to perform calculations in the stream or addition of individual lines,
  • supports selection of text from HTML
  • counting the number of machine-visiting (typewritten) pages and author's pages
  • calculation of reading time for different languages and/or different speeds
stat := wstat.FromString(`text data`)
fmt.Println("reading time:", stat)