Skip to content

manish-pandey413/FilesGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FilesGo

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. :)

Requirement

  • Just is optional, but if you want there is a Justfile in case.
  • Go(Golang) obv.

Usage

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.

About

A minimal command line tool to send file between devices in same network, made using Goland and cUrl.

Topics

Resources

Stars

Watchers

Forks

Contributors