package main import ( "log" "net/http" "time" ) func main() { s := &http.Server{ Addr: ":8080", //Handler: myHandler, ReadTimeout: 10 * time.Second, WriteTimeout: 10 * time.Second, MaxHeaderBytes: 1 << 20, } http.Handle("/", http.FileServer(http.FS(content))) log.Fatal(s.ListenAndServe()) }