19 lines
267 B
Go
19 lines
267 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
|
|
"nebula/handlers"
|
|
)
|
|
|
|
func main() {
|
|
mux := http.NewServeMux()
|
|
handlers.RegisterRoutes(mux)
|
|
|
|
addr := ":8080"
|
|
fmt.Printf("Starting server at http://localhost%s\n", addr)
|
|
log.Fatal(http.ListenAndServe(addr, mux))
|
|
}
|