miner

package
v0.0.0-...-2805226 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	// contains filtered or unexported fields
}

Count handles the word count mining process.

func NewCount

func NewCount() Count

NewCount creates a new Count miner.

func (Count) Name

func (m Count) Name() string

Name returns the specific name for the miner.

func (Count) Results

func (m Count) Results() map[string]int

Results returns the word count.

func (Count) Visit

func (m Count) Visit(node ast.Node) ast.Visitor

Visit implements the ast.Visitor interface and handles the logic for the data extraction.

Jump to

Keyboard shortcuts

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