Skip to content

Instantly share code, notes, and snippets.

View vin047's full-sized avatar

Vinoth Ramiah vin047

View GitHub Profile
@vin047
vin047 / serve.go
Last active February 14, 2021 17:06 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8000": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8000 will display the index.html or directory listing file.
*/
package main