website/server.go
2025-05-22 14:00:35 +02:00

18 lines
259 B
Go

package main
import (
"log"
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("./sterling"))
http.Handle("/", fs)
log.Println("Serving at http://localhost:8080")
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatal(err)
}
}