Golang-Blog-Server
Golang-Blog-Server copied to clipboard
你好,请教一个问题。
/pkg/repositories/base_repository.go 28行,这段代码是啥意思呢。
//接口实现自检 var _ IRepository = &BaseRepository{}
就是检查该repo有没有实现接口啊,你试试就知道拉,编译时检查的
来自Track
在 2020年1月8日,15:05,Astella [email protected] 写道:
/pkg/repositories/base_repository.go 28行,这段代码是啥意思呢。
//接口实现自检 var _ IRepository = &BaseRepository{}
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.