写法有点怪异,记一下吧
_, implemented := this.delegate.(IGenTcpServerDelegate) if implemented { this.delegate.GenTcpServerClientConnected(this.getClientInfoMap(conn)) }
也就是传说中的接口查询,话说go的一些东西真心让人真气逆行啊,哎,就不能设计的人性化点。。。
写法有点怪异,记一下吧
_, implemented := this.delegate.(IGenTcpServerDelegate) if implemented { this.delegate.GenTcpServerClientConnected(this.getClientInfoMap(conn)) }
也就是传说中的接口查询,话说go的一些东西真心让人真气逆行啊,哎,就不能设计的人性化点。。。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。