Golang-Blog-Server icon indicating copy to clipboard operation
Golang-Blog-Server copied to clipboard

你好,请教一个问题。

Open chkaos opened this issue 5 years ago • 1 comments

/pkg/repositories/base_repository.go 28行,这段代码是啥意思呢。

//接口实现自检 var _ IRepository = &BaseRepository{}

chkaos avatar Jan 08 '20 07:01 chkaos

就是检查该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.

lyw1995 avatar Jan 08 '20 10:01 lyw1995