mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 14:36:58 +08:00
15 lines
274 B
Go
15 lines
274 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
"./Request"
|
|
)
|
|
|
|
func main () {
|
|
http.HandleFunc("/", Request.RequestHandler.ServeHTTP)
|
|
err := http.ListenAndServe("localhost:27555", nil)
|
|
if err != nil {
|
|
log.Fatal("ListenAndServe: ", err.Error())
|
|
}
|
|
} |