fuzz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(size FileByteSize) (path string, checksum string, berr error)

File tries to create a file with given size and returns the path and the SHA256 checksum or error.

func FreePorts

func FreePorts(amount int) ([]int, error)

FreePorts tries to find the free ports and returns them or error.

func String

func String(size int) string

String returns a random string with given size.

Types

type FileByteSize

type FileByteSize int64
const (
	B FileByteSize = 1 << (10 * iota)
	KB
	MB
	GB
)

Jump to

Keyboard shortcuts

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