mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-10 12:36:42 +00:00
19 lines
333 B
Go
19 lines
333 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/rjNemo/go-wiki/controller"
|
|
)
|
|
|
|
func main() {
|
|
startServer(controller.Port)
|
|
}
|
|
|
|
func startServer(p string) {
|
|
log.Printf("Start Go-wiki server on http://localhost:%s\n", controller.Port)
|
|
port := ":" + p
|
|
controller.RegisteredRoutes()
|
|
log.Fatal(http.ListenAndServe(port, nil))
|
|
}
|