tmp.htmlx/main.go
Vincent Batts 58ebeb91d8
*.go: add a golang webserver for this project
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2024-05-26 21:05:59 -04:00

20 lines
366 B
Go

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())
}