frequency

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrequencyTable

type FrequencyTable struct {
	*widgets.QTableWidget

	Counts map[string]int
	Keys   []string
	KeyMap map[string]int
	// contains filtered or unexported fields
}

func NewFrequencyView

func NewFrequencyView(
	filePath string,
	maxSize int,
) *FrequencyTable

func (*FrequencyTable) Add

func (view *FrequencyTable) Add(key string, plus int)

func (*FrequencyTable) Clear

func (view *FrequencyTable) Clear()

func (*FrequencyTable) LoadFromFile

func (view *FrequencyTable) LoadFromFile(pathStr string) error

func (*FrequencyTable) Save

func (view *FrequencyTable) Save() error

func (*FrequencyTable) SaveNoError

func (view *FrequencyTable) SaveNoError()

func (*FrequencyTable) Trim

func (view *FrequencyTable) Trim()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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