blob: 74e60b06dff5344bf030ba86b8808dded3732f46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package main
import (
"log"
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("/static"))
http.Handle("/", fs)
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)
}
|