helpers

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MPL-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

View Source
const GB_IN_BYTES uint64 = 1024 * 1024 * 1024
View Source
const GO_ROUTINES_PER_GB uint64 = 250000

Variables

This section is empty.

Functions

func FormatSlice

func FormatSlice(a []string) string

func GetMaxGoRoutines added in v0.7.8

func GetMaxGoRoutines() uint64

func HasDuplicates added in v0.3.2

func HasDuplicates(resources []string) bool

func InterfaceSlice added in v0.7.2

func InterfaceSlice(slice interface{}) []interface{}

InterfaceSlice converts any interface{} into a []interface{} slice

func ToStringSliceE added in v0.8.10

func ToStringSliceE(i interface{}) ([]string, error)

func Uint64ToInt64 added in v0.7.8

func Uint64ToInt64(i uint64) int64

Uint64ToInt64 if value is bigger than math.MaxInt64 return math.MaxInt64 otherwise returns original value casted to int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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