standard

package
v0.0.0-...-a26ebea Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct{}

Clock is the standard clock implementation that uses stdlib time.

func Generate

func Generate(rand *rand.Rand) Clock

Generate a new standard clock.

func (Clock) Generate

func (Clock) Generate(rand *rand.Rand, size int) reflect.Value

Generate random Clock values.

Interface: quick.Generator

func (Clock) Now

func (c Clock) Now() time.Time

Now returns the current time for the clock.

Interface: clock.Clock

func (Clock) String

func (c Clock) String() string

String value of the Clock.

Interface: fmt.Stringer.

Jump to

Keyboard shortcuts

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