diff --git a/serv_golang_rest_api/main.go b/serv_golang_rest_api/main.go index a907388..83ed081 100644 --- a/serv_golang_rest_api/main.go +++ b/serv_golang_rest_api/main.go @@ -22,7 +22,7 @@ type User struct { func handler(w http.ResponseWriter, r *http.Request) { // Get DB connection from context - db, ok := r.Context().Value("db").(*gorm.DB + db, ok := r.Context().Value("db").(*gorm.DB) if !ok { http.Error(w, "Database connection not found", http.StatusInternalServerError) return