main.go 270 B

12345678910111213141516
  1. package main
  2. import (
  3. "fmt"
  4. "net/http"
  5. )
  6. func main() {
  7. port := 8080
  8. portStr := fmt.Sprintf("%d", port)
  9. fmt.Println("Serving wasm directory on http://localhost:" + portStr + "...")
  10. http.ListenAndServe(":"+portStr, http.FileServer(http.Dir("./wasm")))
  11. return
  12. }