randommodule

package
v0.0.0-...-0fadc07 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) *random.Random

Get returns the Random, or nil if not found.

func Initializer

func Initializer(_ context.Context) (inject.Injector, inject.Releaser, error)

Initializer is a Random initializer.

func MustGet

func MustGet(ctx context.Context) *random.Random

MustGet returns the Random, panics if not found.

func SingletonInjectorFactory

func SingletonInjectorFactory(rnd *random.Random) inject.Injector

SingletonInjectorFactory always injects the given Random.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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