Stats file added

This commit is contained in:
Loweel 2019-12-09 16:33:58 +01:00
parent a7d0ac576c
commit 4756d8517f

View file

@ -56,8 +56,10 @@ func saveBayesToFile() {
tmpJSON = jerr.Error()
}
fmt.Println(time.Now().String())
Classifier.STATS.Range(func(key interface{}, value interface{}) bool {
fmt.Printf("%s : %d", key.(string), value.(int64))
fmt.Printf("%s : %d\n", key.(string), value.(int64))
return true
})