Website/main.go
2024-01-09 15:08:56 +01:00

19 lines
403 B
Go

package main
import (
"fmt"
"net/http"
)
func main() {
// Define the directory where your HTML and CSS files are located
http.Handle("/", http.FileServer(http.Dir(".")))
// Start the web server on port 8080
port := 8369
fmt.Printf("Server is running on http://localhost:%d\n", port)
err := http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
if err != nil {
fmt.Println("Error:", err)
}
}