Of course! Here's a README for your implementation of the touch
command for Windows using Go:
A simple implementation of the classic Unix touch
command for Windows, written in Go. Easily create new files or update the modification time of existing ones right from the command line.
- Create New Files: Instantly create a new file if it doesn't exist.
- Update Modification Time: Refresh the modification time of an existing file to the current system time.
- Go (version 1.x or newer)
- Clone the repository:
git clone https://github.com/copyleftdev/touch.git
cd touch
- Build the project:
go build -o touch.exe touch.go
This will generate the touch.exe
executable.
To use the touch
command:
./touch.exe <filename>
Replace <filename>
with your desired file name.
Pull requests are welcome! For major changes, please open an issue first to discuss the changes you'd like to make.
This project is licensed under the MIT License - see the LICENSE
file for more details.