Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 v1.0.0 Jun 2, 2022 Changes in this version + var ClientMap = make(map[net.Addr]net.Conn) + var NetHandlerMap = make(map[string]NetHandler) + func Client() + func Decode(reader *bufio.Reader) ([]byte, error) + func Encode(mes []byte) ([]byte, error) + func RegistNetHandler(cmd string, f NetHandler) + func Server(host string, port int, protocol string) error + type NetHandler func(data interface{}, conn net.Conn)