From 6b512927a0c2741fa901539e6a71d608a547b1c0 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Thu, 25 Sep 2025 15:29:11 +0500 Subject: [PATCH] modified: main.go fix loosed breackeds --- serv_golang_rest_api/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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