mirror of
https://github.com/rclone/rclone
synced 2024-12-20 10:25:56 +01:00
21 lines
389 B
Go
21 lines
389 B
Go
//go:build none
|
|
// +build none
|
|
|
|
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))
|
|
}
|