uuid

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestUuidGenerator

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

TestUuidGenerator is a [UuidGenerator] implementation allowing deterministic generations (for testing).

func NewTestUuidGenerator

func NewTestUuidGenerator(value string) *TestUuidGenerator

NewTestUuidGenerator returns a TestUuidGenerator, implementing [UuidGenerator].

It accepts a value that will be used for deterministic generation results.

func (*TestUuidGenerator) Generate

func (g *TestUuidGenerator) Generate() string

Generate returns the configured deterministic value.

func (*TestUuidGenerator) SetValue

func (g *TestUuidGenerator) SetValue(value string) *TestUuidGenerator

SetValue sets the value to use for deterministic generations.

Jump to

Keyboard shortcuts

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