touch-fake

command module
v0.0.0-...-65ac8a7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

README

Touch Fake

GitHub GitHub go.mod Go version GitHub release (latest by date)

Description

touch-fake is a Go tool that allows you to easily create fake files with a specific size in bytes. This can be useful for performance testing, simulations, and other scenarios where you need a file of a certain size without the need for real content. The name touch fake was based on the command touch used on linux to create a file.

How to Use

Prerequisites

Make sure you have Go installed on your machine. For more information on how to install Go, visit https://golang.org/doc/install.

Installation
go get -u github.com/NalbertLeal/touch-fake
Basic Usage

This will create a file named fake_file.txt with a size of 1024 bytes:

touch-fake fake_file.txt 1024 

And this will create a file named fake_file.txt with a size of 1024 bytes that overwrite the file (if already exist):

touch-fake fake_file.txt 1024 -overwrite
Options
  • -overwrite: Overwrite the output file if it already exists (optional).

Contribution

If you would like to contribute improvements, bug fixes, or new features, feel free to open an issue or submit a pull request. Your contribution is welcome!

License

This project is licensed under the GNU LESSER GENERAL PUBLIC LICENSE.


Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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