Skip to content

Instantly share code, notes, and snippets.

@arriqaaq
Created June 21, 2018 11:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arriqaaq/0baf8f2631272e423be3b002b02206c8 to your computer and use it in GitHub Desktop.
Save arriqaaq/0baf8f2631272e423be3b002b02206c8 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"net/http"
)
func main() {
// Simple static webserver:
log.Fatal(http.ListenAndServe(":8080", http.FileServer(http.Dir("/usr/share/doc"))))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment