13 lines
147 B
Go
13 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
|
|
}
|