15 lines
195 B
Go
15 lines
195 B
Go
package main
|
|
|
|
import (
|
|
"server/core"
|
|
"server/packet"
|
|
)
|
|
|
|
var server = core.New()
|
|
|
|
func main() {
|
|
server.AddHandler(packet.PING, ping)
|
|
server.AddHandler(packet.LOGIN, login)
|
|
server.Run(4242)
|
|
}
|