polunzh / simplehttpserver-go

Simple http server implemented by Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Http Server

Just for fun.

!! Inspired by https://www.npmjs.com/package/simplehttpserver

Install Deps

go get -v -t

Build

go build -o simplehttpserver

Usage

NAME:
   ./simplehttpserver - Inspired by https://www.npmjs.com/package/simplehttpserver

USAGE:
   main [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --directory DIRECTORY, -d DIRECTORY  Specify the DIRECTORY for serve (default: ".")
   --port PORT, -p PORT                 PORT to listen, default is 8000 (default: "8000")
   --help, -h                           show help (default: false)

About

Simple http server implemented by Go

License:GNU General Public License v3.0


Languages

Language:Go 87.3%Language:HTML 12.7%