github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/contrib/httpserver/server.go (about) 1 package main 2 3 import ( 4 "log" 5 "net/http" 6 ) 7 8 func main() { 9 fs := http.FileServer(http.Dir("/static")) 10 http.Handle("/", fs) 11 log.Panic(http.ListenAndServe(":80", nil)) // #nosec G114 -- Ignoring for test-code: G114: Use of net/http serve function that has no support for setting timeouts (gosec) 12 }