sanitizers

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

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