A command line tool to share files across device, made using Golang. It uses curl to send files with MIME type multipart/form-data. This tool exits because I was too lazy to go get my usb cable. :)
- Just is optional, but if you want there is a Justfile in case.
- Go(Golang) obv.
- Server side
- i.e the device you want file to be sent.
git clone https://github.com/manish-pandey413/FilesGo
cd FilesGo/- Using Just
just run- Using normal go commands
cd cmd/FilesGo
go run .- Client Side
- Note the ip address that will be displayed after go run/ just run.
curl -v -F --file="@fileYouWantToSend" ipAddress:8080/upload/Note that @ is important as it represents file is being sent as a binary, and :8080 is port and upload is endpoint.