Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDailyUserStat ¶
func CreateDailyUserStat(docStatList []*DocStat) (dates map[string]DailyUserStat)
Types ¶
type DailyUserStat ¶
type DailyUserStat struct { WordAdd int `json:"WordAdd"` WordSub int `json:"WordSub"` ModDate string `json:"ModDate"` FileRevs map[string][]string `json:"FileRevList"` }
func (DailyUserStat) String ¶
func (day DailyUserStat) String() string
type DocStat ¶
type RevStat ¶
type UserStat ¶
type WordPair ¶
type WordPair struct { Word string `json:"Word"` Count int `json:"Count"` Ratio float32 `json:"Ratio"` }
func GetTopWords ¶
type WordPairByVol ¶
type WordPairByVol []WordPair
Sort by Modified Date and Type
func (WordPairByVol) Len ¶
func (a WordPairByVol) Len() int
func (WordPairByVol) Less ¶
func (a WordPairByVol) Less(i, j int) bool
func (WordPairByVol) Swap ¶
func (a WordPairByVol) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.