14 lines
159 B
Go
14 lines
159 B
Go
|
package servers
|
||
|
|
||
|
import "net"
|
||
|
|
||
|
type Client struct {
|
||
|
conn net.Conn
|
||
|
}
|
||
|
|
||
|
func NewClient(conn net.Conn) *Client {
|
||
|
ret := &Client{}
|
||
|
ret.conn = conn
|
||
|
return ret
|
||
|
}
|