2021-09-09 12:25:25 +00:00
|
|
|
//go:build none
|
|
|
|
// +build none
|
2020-08-01 14:36:20 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"mime"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
mime.AddExtensionType(".wasm", "application/wasm")
|
|
|
|
mime.AddExtensionType(".js", "application/javascript")
|
|
|
|
mux := http.NewServeMux()
|
|
|
|
mux.Handle("/", http.FileServer(http.Dir(".")))
|
|
|
|
fmt.Printf("Serving on http://localhost:3000/\n")
|
|
|
|
log.Fatal(http.ListenAndServe(":3000", mux))
|
|
|
|
}
|