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