gobyexample/examples/static-content/static-content.go
2012-10-09 21:02:12 -07:00

13 lines
214 B
Go

package main
import "net/http"
func main() {
handler := http.FileServer(http.Dir("./"))
http.ListenAndServe(":5000", handler)
}
// todo: index pages
// todo: disable listing
// todo: custom 404 handling