util

package
v0.0.0-...-fe8a609 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiscardLogger = log.New(ioutil.Discard, "", 0)

DiscardLogger is a logger that discards any output written to it

Functions

func ContainsKind

func ContainsKind(kinds []reflect.Kind, candidate reflect.Kind) bool

ContainsKind returns true if the candidate is present in the kind slice

func IsCollection

func IsCollection(kind reflect.Kind) bool

IsCollection is a check against slice and array

func IsSignedDecimal

func IsSignedDecimal(kind reflect.Kind) bool

IsSignedDecimal is a check against the signed decimal types

func IsUnsignedDecimal

func IsUnsignedDecimal(kind reflect.Kind) bool

IsUnsignedDecimal is a check against the unsigned decimal types

func Max

func Max(a int, b int) int

Max returns the largest of a and b

func Min

func Min(a int, b int) int

Min returns the smallest of a and b

func TestLogger

func TestLogger() *log.Logger

TestLogger returns a log.Logger that writes to ginkgo.GinkgoWriter for use in tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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