utils

package
v0.0.0-...-4e3218a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi

func Btoi(b bool) int

Btoi Bool to Int

func FormatFreq

func FormatFreq(freq float64) string

func Int32InSlice

func Int32InSlice(a int32, list []int32) bool

func Itob

func Itob(i int) bool

Itob Int to Bool

func NewChLogger

func NewChLogger(ps *pubsub.PubSub, topic string, prefix string) *log.Logger

func NewStdLogger

func NewStdLogger(prefix string) *log.Logger

func RandStringRunes

func RandStringRunes(n int) string

RandStringRunes generates a fixed length random string

func RemoveStringFromSlice

func RemoveStringFromSlice(el string, slice []string) []string

func SliceDiff

func SliceDiff(slice1 []string, slice2 []string) []string

func StringInSlice

func StringInSlice(a string, list []string) bool

func StringMapDiff

func StringMapDiff(map1 map[string]float64, map2 map[string]float64) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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