randnumsplash

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README ¶

Library Puzzle Icon

randnumsplash

GitHub release codecov GoDoc Continuous Integration License
A small and fast package that generates a dummy file of the desired length containing random numbers."

Installation

go get -u github.com/anurag0608/randnumsplash

Usage

import "github.com/anurag0608/randnumsplash"
// GenerateRandFile(targetSizeInBytes, folder_location, fileName, loggingEnabled)
err := randnumsplash.GenerateRandFile(1024*1024, folder_location, "rand.txt", true) // loggingEnable

Sample output (loggingEnabled = true)

Target file size: 535822336 Bytes | 511.00 Mb
Starting dumping random numbers 🤖
📂 100% |███████████████| (511/511 MB, 21 MB/s)
Done✅
Took ✨ 24.31s

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License

Documentation ¶

Overview ¶

A small and fast package that generates a dummy file of the desired length containing random numbers.

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func GenerateRandFile ¶

func GenerateRandFile(targetFileSizeInBytes int64, targetLocation, fileName string, loggingEnabled bool) (err error)

Generates a file with randum numbers in it. All numbers are seperated with a new line character "\n"

Types ¶

This section is empty.

Directories ¶

Path Synopsis

Jump to

Keyboard shortcuts

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