helper

package
v0.0.0-...-ed58e6a Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AverageFloat32

func AverageFloat32(arr []float32) float32

func CleanTextAfterHTML

func CleanTextAfterHTML(text string) (string, error)

func CompareSlices

func CompareSlices(s1 []string, s2 []string) bool

func GetBiggestValueInMap

func GetBiggestValueInMap(mymap map[string]int) int

func GetFirstLetter

func GetFirstLetter(str string) string

func GetIndexOfMaxInSlice

func GetIndexOfMaxInSlice(slice []int) int

func KeyWithBiggestValue

func KeyWithBiggestValue(mymap map[string]int) string

func KeysSortedByValues

func KeysSortedByValues(mymap map[string]int) []string

func KeysSortedByValuesReverse

func KeysSortedByValuesReverse(mymap map[string]int) []string

func ReverseStringSlice

func ReverseStringSlice(src []string) []string

func StringInSlice

func StringInSlice(str string, slice []string) bool

func UpperCaseFirstLetter

func UpperCaseFirstLetter(str string) string

Types

type Pair

type Pair struct {
	Key   string
	Value int
}

type PairList

type PairList []Pair

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

Jump to

Keyboard shortcuts

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