randutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunesNumber      = "1234567890"
	RunesLowerAlpha  = "abcdefghijklmnopqrstuvwuxyz"
	RunesUpperAlpha  = "ABCDEFGHIJKLMNOPQRSTUVWUXYZ"
	RunesAlpha       = RunesLowerAlpha + RunesUpperAlpha
	RunesNumAndAlpha = RunesNumber + RunesAlpha
)

Variables

This section is empty.

Functions

func String

func String(n int, runes string) (string, error)

func UniqueId

func UniqueId() (string, error)

func UuidV4

func UuidV4() (string, error)

Types

type RandUtil

type RandUtil interface {
	String(n int, runes string) (string, error)
	UuidV4() (string, error)
	UniqueId() (string, error)
}

func New

func New() RandUtil

Jump to

Keyboard shortcuts

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