package
Version:
v0.0.0-...-27d64f3
Opens a new window with list of versions in this module.
Published: Sep 25, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Counter struct {
Word string `json:"word"`
Frequency int `json:"frequency"`
}
WordsFreq returns a slice containing the frequencies of each word in texts
the slice is sorted in descending order of word frequencies
type UserWords struct {
ID int `json:"id"`
Name string `json:"name"`
Words []Counter `json:"words"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.