util

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(c *gin.Context, status int, err error)

HandleError appends the error to the handler chain for logging and outputs it

func MaxInt

func MaxInt(a, b int) int

MaxInt is a helper function to clamp the integer which prevents it from being higher then the provided value.

Currently, Go only supports float64 via math. ( max | min )

func MinInt

func MinInt(a, b int) int

MinInt is a helper function to clamp the integer which prevents it from being lower then the provided value.

Currently, Go only supports float64 via math. ( max | min )

Types

This section is empty.

Jump to

Keyboard shortcuts

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