示例#1
0
文件: main.go 项目: j7/goatee
func main() {
	err := goatee.CreateServer([]string{"chan1", "chan2"})

	if err != nil {
		log.Fatal("Error: ", err.Error())
	}
}
示例#2
0
文件: main.go 项目: johnernaut/goatee
func main() {
	server := goatee.CreateServer()
	server.RegisterAuthFunc(Authenticate)
	server.StartServer()
}