Documentation ¶
Index ¶
- Constants
- func ArrayContain(arr []interface{}, str interface{}) bool
- func ArrayContains(arr []string, str string) bool
- func ArrayIntContains(arr []int, val int) bool
- func ArrayStringContains(arr []string, val string) bool
- func CamelCase(text string, sep string) (string, error)
- func Classify()
- func ExitOnError(err error)
- func FactGen(num uint) chan uint
- func FactorialGen(num uint) uint
- func FactorialGen2(num uint) uint
- func FactorialTail(num uint, acc uint) uint
- func FiboArray(num uint) [][]uint
- func FiboSeries(num uint) chan<- uint
- func FiboTail(n int, current int, next int) int
- func Filter(arr []interface{}, filterFunc func(interface{}) bool) []interface{}
- func FilterGen(arr []interface{}, filterFunc func(interface{}) bool, ...)
- func GetLanguage(userLang string) string
- func GetParamsMessage(msgObject mctypes.MessageObject, msgType string) mcresponse.ResponseMessage
- func IsPrime(n uint) bool
- func Knn()
- func LeapYear(year int) bool
- func Map(arr []interface{}, mapFunc func(interface{}) interface{}) []interface{}
- func MapGen(arr []interface{}, mapFunc func(interface{}) interface{}, ...)
- func MapInt(arr []int, mapFunc func(int) int) []int
- func Max(arr []float64) float64
- func Mean(arr []float64) float64
- func MeanSquareError()
- func MeanSquareRootError()
- func Median(arr []float64) float64
- func Min(arr []float64) float64
- func MinMax(arr []float64) []float64
- func NBayes()
- func NaturalNumbers(count uint) chan<- uint
- func NaturalNumbersGen(count uint, naturalChan chan<- uint)
- func NaturalNumbersGenInf(naturalChan chan<- uint)
- func PanicOnError(err error)
- func PascalCase(text string, sep string) (string, error)
- func Pythagoras(limit uint) [][]uint
- func PythagorasGen(limit uint, pythagorasChan chan []uint)
- func ReverseArray(arr []interface{}) []interface{}
- func ReverseArrayFloat(arr []float64) []float64
- func ReverseArrayFloatGen(arr []float64, arrChan chan float64)
- func ReverseArrayGen(arr []interface{}, arrChan chan interface{})
- func ReverseArrayInt(arr []int) []int
- func ReverseArrayIntGen(arr []int, arrChan chan int)
- func ShortString(str string, maxLength uint) string
- func StandardDeviation(arr []float64) float64
- func StringToBool(val string) bool
- func Take(num uint, arr []interface{}) chan<- interface{}
- func TakeGen(num uint, arr []interface{}, takeChan chan<- interface{})
- func Variance()
- type ArrayOfFloat
- type ArrayOfInt
- type ArrayOfString
- type ArrayValue
- type DataCount
- type Locale
- type LocaleContent
- type LocaleOptions
- type MessageObject
Constants ¶
View Source
const (
DefaultLanguage = "en-US"
)
Variables ¶
This section is empty.
Functions ¶
func ArrayContain ¶
func ArrayContain(arr []interface{}, str interface{}) bool
func ArrayContains ¶
func ArrayIntContains ¶
func ArrayStringContains ¶
func ExitOnError ¶
func ExitOnError(err error)
func FactorialGen ¶
func FactorialGen2 ¶
func FactorialTail ¶
func FiboSeries ¶
func FilterGen ¶
func FilterGen(arr []interface{}, filterFunc func(interface{}) bool, filterChan chan<- interface{})
func GetLanguage ¶
func GetParamsMessage ¶
func GetParamsMessage(msgObject mctypes.MessageObject, msgType string) mcresponse.ResponseMessage
func Map ¶
func Map(arr []interface{}, mapFunc func(interface{}) interface{}) []interface{}
Collections
func MapGen ¶
func MapGen(arr []interface{}, mapFunc func(interface{}) interface{}, mapChan chan<- interface{})
func MeanSquareError ¶
func MeanSquareError()
func MeanSquareRootError ¶
func MeanSquareRootError()
func NaturalNumbers ¶
func NaturalNumbersGen ¶
Finite natural numbers generation
func NaturalNumbersGenInf ¶
func NaturalNumbersGenInf(naturalChan chan<- uint)
Infinite natural numbers generation
func PanicOnError ¶
func PanicOnError(err error)
func Pythagoras ¶
func PythagorasGen ¶
func ReverseArray ¶
func ReverseArray(arr []interface{}) []interface{}
func ReverseArrayFloat ¶
func ReverseArrayFloatGen ¶
func ReverseArrayGen ¶
func ReverseArrayGen(arr []interface{}, arrChan chan interface{})
func ReverseArrayInt ¶
func ReverseArrayIntGen ¶
func ShortString ¶
func StandardDeviation ¶
func StringToBool ¶
Types ¶
type ArrayOfFloat ¶
type ArrayOfFloat []float64
type ArrayOfInt ¶
type ArrayOfInt []int
type ArrayOfString ¶
type ArrayOfString []string
type Locale ¶
type Locale map[string]LocaleContent
type LocaleContent ¶
type LocaleContent map[string]interface{}
type LocaleOptions ¶
type MessageObject ¶
Click to show internal directories.
Click to hide internal directories.