td

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package td contains functions for data testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool() bool

Bool returns random bool value

func Bytes

func Bytes() []byte

Bytes returns slice of bytes with random values

func Bytesn

func Bytesn(size int) []byte

Bytesn returns slice of bytes with random values and specified size

func Date

func Date() time.Time

Date returns random date

func Email

func Email() string

Email returns random email address

func Float64

func Float64() float64

Float64 returns random float64 value in interval [0.0,1.0)

func Float64n

func Float64n(n int) float64

Float64n returns random float64 value in interval [0.0,n). n should be non-negative

func Int31

func Int31() int32

Int31 returns a random non-negative int32 value

func Int32

func Int32() int32

Int32 returns random int32 value

func Int64

func Int64() int64

Int64 returns random int64 value

func Intn

func Intn(n int) int

Intn returns random value in range [0, n) n should be non-negative

func String

func String() string

String returns random string value

func Stringn

func Stringn(n int) string

Stringn returns random string value with specified length

func URL

func URL() string

URL returns random url

func Uint8

func Uint8() uint8

Uint8 returns random uint8 value

func Uint32

func Uint32() uint32

Uint32 returns random uint32 value

func Uint64

func Uint64() uint64

Uint64 returns random uint64 value

Types

This section is empty.

Jump to

Keyboard shortcuts

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