Website/main.go

20 lines
403 B
Go
Raw Normal View History

2024-01-09 14:08:56 +00:00
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)
}
}