dict

package
v0.0.0-...-f9d0531 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

type Dict map[string]interface{}

Dict used to represent dictionary with custom types.

func (Dict) IsDup

func (d Dict) IsDup(darr DictArray) bool

IsDup used to check whether Dict presents in given DictArray.

func (Dict) Print

func (d Dict) Print()

Print used to print single Dict.

type DictArray

type DictArray []Dict

DictArray used to represent array of Dict instances.

func CreateArray

func CreateArray(n int) DictArray

CreateArray used to create DictArray with given size.

func (DictArray) Binary

func (darr DictArray) Binary(gt string) Dict

Binary used to find value using binary search method.

func (DictArray) Brute

func (darr DictArray) Brute(gt string) Dict

Brute used to find value using bruteforce method.

func (DictArray) FAnalysis

func (darr DictArray) FAnalysis() FreqArray

FAnalysis used to analyse frequency of given DictArray.

func (DictArray) Pick

func (darr DictArray) Pick(l string) string

Pick used to get gamertag with first letter.

func (DictArray) Print

func (darr DictArray) Print()

Print used to print single DictArray.

type Freq

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

Freq used to represent frequency analyser type.

type FreqArray

type FreqArray []Freq

FreqArray used to represent array of Freq instances.

func (FreqArray) Combined

func (farr FreqArray) Combined(w string) Dict

Combined used to find value using binary search and frequency analysis method.

Jump to

Keyboard shortcuts

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