I will use testify package to writing unit tests for your code. Instead of using concrete type *gorm.DB , declaring DB interface for ...
確定! 回上一頁