sanitizers

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Unlicense, Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetAddress = "netaddress"
	Password   = "password"
	FilePath   = "filepath"
	Directory  = "directory"
)

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

func ClampDuration

func ClampDuration(min, max time.Duration) func(input time.Duration) (result time.Duration)

func ClampFloat

func ClampFloat(min, max float64) func(input float64) (result float64)

func ClampInt

func ClampInt(min, max int) func(input int) (result int)

func StringType

func StringType(typ, input string, defaultPort int) (cleaned string, e error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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