utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageStrategy = imageStrategy{
	WWNGen: idgen.NewIDGen(rand.Reader, 16),
}
View Source
var SnapshotStrategy = snapshotStrategy{}

Functions

func DeleteSliceElement

func DeleteSliceElement[E comparable](s []E, elem E) []E

func Zero

func Zero[E any]() E

Types

type Rater

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

func NewRater

func NewRater(r io.Reader) *Rater

func (*Rater) Rate

func (r *Rater) Rate() (n int64, d time.Duration)

func (*Rater) Read

func (r *Rater) Read(b []byte) (n int, err error)

func (*Rater) String

func (r *Rater) String() string

Jump to

Keyboard shortcuts

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