From 9cf817e614a906c54990c74c28d4a6dcf9465731 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 12:19:57 +0800 Subject: Remove underscores from Go code, pt 6 --- http_handle_repo_contrib_index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'http_handle_repo_contrib_index.go') diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go index 152c8cd..41c4d18 100644 --- a/http_handle_repo_contrib_index.go +++ b/http_handle_repo_contrib_index.go @@ -9,7 +9,7 @@ import ( "github.com/jackc/pgx/v5" ) -type id_title_status_t struct { +type idTitleStatus struct { ID int Title string Status string @@ -17,7 +17,7 @@ type id_title_status_t struct { func httpHandleRepoContribIndex(w http.ResponseWriter, r *http.Request, params map[string]any) { var rows pgx.Rows - var result []id_title_status_t + var result []idTitleStatus var err error if rows, err = database.Query(r.Context(), @@ -36,7 +36,7 @@ func httpHandleRepoContribIndex(w http.ResponseWriter, r *http.Request, params m http.Error(w, "Error scanning merge request: "+err.Error(), http.StatusInternalServerError) return } - result = append(result, id_title_status_t{id, title, status}) + result = append(result, idTitleStatus{id, title, status}) } if err = rows.Err(); err != nil { http.Error(w, "Error ranging over merge requests: "+err.Error(), http.StatusInternalServerError) -- cgit v1.2.3