我想通过源码学习httprouter 发现下面这句话,但是不知道意义何在,谢谢解答
https://github.com/julienschmidt/httprouter/blob/master/router.go
line: 165
// Make sure the Router conforms with the http.Handler interface
var _ http.Handler = New()
注释说是确保实现 ServeHTTP 接口,但是是怎么确保的呢?
有疑问加站长微信联系(非本文作者)