website/server.go
2025-05-22 16:13:58 +02:00

20 lines
355 B
Go

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