diff --git a/Chapter_6_Storing_Data/gorm_store/store.go b/Chapter_6_Storing_Data/gorm_store/store.go index 90ff2eba..8e26f429 100644 --- a/Chapter_6_Storing_Data/gorm_store/store.go +++ b/Chapter_6_Storing_Data/gorm_store/store.go @@ -23,7 +23,7 @@ type Comment struct { CreatedAt time.Time } -var Db gorm.DB +var Db *gorm.DB // connect to the Db func init() {