httpserv

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

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 9 Imported by: 0

README

HTTP Serv

A simple HTTP file server written in Go. I could have just used python -m SimpleHTTPServer but where is the fun in that?

It uses html/template but has an internal template so all you have to do is run the binary and you're good to go.

Installing

Run go install github.com/antizealot1337/httpserv

Running the HTTP file server

It currently accepts a few different command line arguments.

  • -root: This is the directory you want to server (defaults to ".")
  • -port: The port you want the server to run on (defaults to 8080).
  • -a: Shows hidden files. A hidden file is a file that begins with a ".".

License

Copyright 2016, 2017

All files in this repository are licensed under the terms of the MIT license. See the LICENSE file for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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