17 lines
219 B
Go
17 lines
219 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"framework1/framework"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
core := framework.NewCore()
|
||
|
registerRouter(core)
|
||
|
server := &http.Server{
|
||
|
Handler: core,
|
||
|
Addr: ":8888",
|
||
|
}
|
||
|
server.ListenAndServe()
|
||
|
}
|