You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
348 B

package main
import (
"math/rand"
"texas-poker-bk/internal/conf"
"texas-poker-bk/internal/server"
"time"
)
func startServer() {
// TODO 真随机数 crypto/rand
rand.Seed(time.Now().UnixNano())
httpServer := server.NewServer()
err := httpServer.Run(conf.Conf.Http.Addr)
if err != nil {
panic(err)
}
}
func main() {
startServer()
}