util

package module
v0.0.0-...-d9f2139 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(e error)

Check for err, panic if exists

func CheckError

func CheckError(message string, err error)

CheckError checks for err, log message/err

func ContainsString

func ContainsString(s []string, e string) bool

ContainsString checks if a slice contains a given string

func MaxFloat

func MaxFloat(a, b float64) float64

MaxFloat Returns the max between 2 float64

func MaxInt

func MaxInt(a, b int) int

MaxInt Returns the max between 2 ints

func MinFloat

func MinFloat(a, b float64) float64

MinFloat Returns the min between 2 float64

func MinInt

func MinInt(a, b int) int

MinInt Returns the min between 2 ints

func PP

func PP(v interface{}) (err error)

PP is a pretty printer

Types

This section is empty.

Jump to

Keyboard shortcuts

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