Website/main.go
2024-01-09 17:43:53 +01:00

19 lines
408 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 specfied port
port := 10369
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)
}
}