random

package
v0.0.37-pre1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(maxLength int) (int, error)

Generate random number based on time.Now().UnixNano() with return random int with current maximum character is 19.

Will return error if generate is failure.

errors:

- `codes.CodeInvalidValue`.

func SInt

func SInt(maxLength int) (string, error)

Generate random number based on time.Now().UnixNano() with return string of random int.

Types

This section is empty.

Jump to

Keyboard shortcuts

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