Skip to content

smvz/goServeFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

goServeFile

Simple tool written in Go to serve one file over HTTP. Useful for transferring individual, large files over the Internet.

Installation

Install the Go programming language compiler for your platform, e.g. for Ubuntu 18.04: sudo apt-get install golang

Compile the source: go build goServeFile.go

Example Usage

echo "test" > testfile.txt && ./goServeFile testfile.txt

$ curl localhost:8080
<a href="/testfile.txt">Found</a>.
$ curl -L localhost:8080
test

Ctrl+c to stop listening and terminate the program

TODO

  • Support resuming downloads
  • Support choosing directories, presenting a directory listing to clients by default
  • Add option to choose a directory, archiving the contents and providing a single download of that archive

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages