testhelper

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUUID

func CreateUUID() *uuid.UUID

CreateUUID creates a new UUID

func RandInt

func RandInt(min int, max int) int

RandInt return a random number within a range

func RandIntSlice

func RandIntSlice(min int, max int, n int) []int

RandIntSlice returns a random range of numbers as a slice within a range

Usage: arr := random.RandIntSlice(2, 100, 3)

Output: [40, 5, 81] Output: [12, 52, 31]

func ToUUID

func ToUUID(szUUID string) *uuid.UUID

ToUUID creates a UUID from a string value

Types

This section is empty.

Jump to

Keyboard shortcuts

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