utils

package module
v3.0.0-...-e471ed3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 41 Imported by: 7

Documentation

Index

Constants

View Source
const Addr addr = iota
View Source
const Assign ass = iota
View Source
const Captcha captcha = iota
View Source
const Cmd cm = iota
View Source
const Compress compress = iota
View Source
const Conv conv = iota
View Source
const Crypto crypto = iota
View Source
const Dir di = iota
View Source
const Extract ex = iota
View Source
const File fi = iota
View Source
const Json json = iota
View Source
const Process pro = iota
View Source
const Rand rd = iota
View Source
const Rate rate = iota
View Source
const Signal sig = iota
View Source
const String str = iota
View Source
const Structure structure = iota
View Source
const System system = iota
View Source
const Time ti = iota

Variables

This section is empty.

Functions

func AnyArray

func AnyArray[T any](src *[]T) anyArray[T]

func ComparableArray

func ComparableArray[T comparable](src *[]T) comparableArray[T]

func OrderedArray

func OrderedArray[T constraints.Ordered](src *[]T) orderedArray[T]

func Ternary

func Ternary[T any](b bool, t T, f T) T

Types

type Allow

type Allow struct {
	// contains filtered or unexported fields
}

func (*Allow) Allow

func (a *Allow) Allow() bool

type Limiter

type Limiter struct {
	// contains filtered or unexported fields
}

func (*Limiter) Global

func (l *Limiter) Global(rate int) *Allow

func (*Limiter) Key

func (l *Limiter) Key(key string, rate int) *Allow

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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