Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
Types ¶
type Article ¶
type Article struct { Title string Text []interface{} }
func (*Article) StartsWithHeading ¶
type Bitset ¶
type Bitset struct {
Bucket uint64
}
type Input ¶
type Input struct { Origin string // either file path or URL or empty if data was read from stdin Data io.ReadCloser // the HTML data (hopefully) }
Input stores the user-provided data and its origin.
type Regex ¶
func NewRegexFromWords ¶
NewWordMatchRegex creates a new Regex struct matching any of the words passed as arguments.
type Stringset ¶
type Stringset struct {
Bitset
}
func NewStringset ¶
func NewStringset() *Stringset
type Text ¶
func (*Text) Similarity ¶
Calculate a word-based similarity to a given text. This function returns values between [0,1], where zero means the texts share no words and one means the text have all words in common. This function is fuzzy.
func (*Text) WriteString ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.