基于epoll 边缘模式实现的 golang reactor socket 框架
package main
import (
"fly/agreement/http"
"fmt"
)
func main() {
http.Run(":8000", func(req *http.Request, resp *http.Response) {
fmt.Println(req.Url)
resp.Write([]byte("hello world "))
})
}
基于epoll 边缘模式实现的 golang reactor socket 框架
package main
import (
"fly/agreement/http"
"fmt"
)
func main() {
http.Run(":8000", func(req *http.Request, resp *http.Response) {
fmt.Println(req.Url)
resp.Write([]byte("hello world "))
})
}