16 lines
208 B
Go
16 lines
208 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log/slog"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
router := http.NewServeMux()
|
||
|
|
||
|
router.HandleFunc("GET /", index)
|
||
|
|
||
|
slog.Info("Listening on port 8080")
|
||
|
http.ListenAndServe(":8080", router)
|
||
|
}
|