serve

command module
v0.0.0-...-f21db6c Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

serve

A simple program to share single files over the network. Inspired by pshs

Usage

Assume you want to share 'dir/file' and 'dir/file2'. Just use these files as command-line arguments:

serve dir/file dir/file2

You will get an output similar to:

2017/12/28 23:25:37 Adding dir%2Ffile
2017/12/28 23:25:37 Adding dir%2Ffile2
2017/12/28 23:25:37 Server reachable at http://localhost:8080/
2017/12/28 23:25:37 Server publicly reachable at http://XXX.XXX.XXX.XXX:8080/

Your files are now accessible at http://XXX.XXX.XXX.XXX:8080/dir%2Ffile and http://XXX.XXX.XXX.XXX:8080/dir%2Ffile2

For more options like switching ports use

serve --help

File list

On default a list of files is shown on '/', e.g. 'http://XXX.XXX.XXX.XXX:8080/'. To disable this use

serve -filelist=false

License

APACHE-2.0. See LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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