tao:用golang编写的异步TCP框架
陶
轻量级TCP异步gOlang框架轻量级TCP初始框架,Go语言实现1.6.0
要求
Golang 1.9及更高版本
安装
go get -u -v github.com/leesper/tao
用法
50行的聊天服务器示例
package main
import (
"fmt"
"net"
"github.com/leesper/holmes"
"github.com/leesper/tao"
"github.com/leesper/tao/examples/chat"
)
// ChatServer is the chatting server.
type ChatServer struct {
* tao. Server
}
// NewChatServer returns a ChatServer.
func NewChatServer () * ChatServe