var _ ipc.Server = &CenterServer{} CenterServer是否实现了 ipc.Server的接口。编译期间检测,这是很好的编程实践。 稍后详述。。。 转载于:https://www.cnblogs.com/wjx0912/p/6265789.html