示例#1
0
func main() {
	service := new(EchoServer)
	echo.RegisterEchoService(service)
	l, err := net.Listen("tcp", ":8888")
	if err != nil {
		log.Fatal(err)
		return
	}
	muduorpc.Serve(l)
}
示例#2
0
func main() {
	service := new(SudokuServer)
	sudoku.RegisterSudokuService(service)
	l, err := net.Listen("tcp", ":9981")
	if err != nil {
		log.Fatal(err)
		return
	}
	muduorpc.Serve(l)
}