utils

package
v0.0.0-...-a56488b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileScanner

func NewFileScanner() *fileScanner

Types

type TallyCount

type TallyCount struct {
	Total      int
	WordCounts map[string]int
}

func LoadTrainingData

func LoadTrainingData(datafile string) (trainingData TallyCount)

func Tally

func Tally(path string) (results TallyCount)

func (*TallyCount) Print

func (tc *TallyCount) Print()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL