Skip to content

Instantly share code, notes, and snippets.

View josh-techindeed's full-sized avatar

Josh Raymond josh-techindeed

View GitHub Profile
@josh-techindeed
josh-techindeed / serve.go
Created July 4, 2018 07:19 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
@josh-techindeed
josh-techindeed / serve.go
Created July 4, 2018 07:19 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main