Skip to content

Instantly share code, notes, and snippets.

@tenox7
Created May 19, 2023 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenox7/0badb746b2f2b38d0cb9f62cbf080345 to your computer and use it in GitHub Desktop.
Save tenox7/0badb746b2f2b38d0cb9f62cbf080345 to your computer and use it in GitHub Desktop.
// the most simple web server in go
package main
import (
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("/tmp")))
http.ListenAndServe(":8080", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment