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(".")))
|
|
|
|
|
2024-01-09 16:43:53 +00:00
|
|
|
// Start the web server on specfied port
|
|
|
|
port := 10369
|
2024-01-09 14:08:56 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|