Documentation ¶
Index ¶
- func GetTags(source string, contentType ContentType, limit int, verbose, noStopWords bool) ([]*processor.Tag, error)
- func GetTagsFromString(input string, contentType ContentType, limit int, verbose, noStopWords bool) ([]*processor.Tag, error)
- func ToStrings(items []*processor.Tag) []string
- type ContentType
- type In
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTags ¶
func GetTags(source string, contentType ContentType, limit int, verbose, noStopWords bool) ([]*processor.Tag, error)
GetTags produces slice of tags ordered by frequency and limited by limit.
func GetTagsFromString ¶ added in v0.1.0
func GetTagsFromString(input string, contentType ContentType, limit int, verbose, noStopWords bool) ([]*processor.Tag, error)
GetTagsFromString produces slice of tags ordered by frequency and limited by limit.
Types ¶
type ContentType ¶ added in v0.2.0
type ContentType int
ContentType ...
const ( Unknown ContentType = iota Text HTML )
Content types
func ContentTypeOf ¶ added in v0.2.0
func ContentTypeOf(contentType string) ContentType
ContentTypeOf returns ContentType based on string value.
func (ContentType) String ¶ added in v0.2.0
func (contentType ContentType) String() string
String ...
type In ¶ added in v0.2.0
type In struct { ContentType // contains filtered or unexported fields }
In - Input. This struct provides methods for reading strings and numbers from standard input, file input, URLs, and sockets.
func NewIn ¶ added in v0.2.0
NewIn initializes an input stream from STDIN, file or web page.
name - the filename or web page name, reads from STDIN if name is empty. Panics on errors.
func NewInFromString ¶ added in v0.2.0
func NewInFromString(input string, contentType ContentType) In
NewInFromString ...
func (*In) ReadAllLines ¶ added in v0.4.0
ReadAllLines provides slice of lines from input.
func (*In) ReadAllStrings ¶ added in v0.2.0
ReadAllStrings provides slice of strings from input split by white space.