diff options
Diffstat (limited to 'http_handle_repo_contrib_index.go')
-rw-r--r-- | http_handle_repo_contrib_index.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go index f352a3f..41c4d18 100644 --- a/http_handle_repo_contrib_index.go +++ b/http_handle_repo_contrib_index.go @@ -9,15 +9,15 @@ import ( "github.com/jackc/pgx/v5" ) -type id_title_status_t struct { +type idTitleStatus struct { ID int Title string Status string } -func handle_repo_contrib_index(w http.ResponseWriter, r *http.Request, params map[string]any) { +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 handle_repo_contrib_index(w http.ResponseWriter, r *http.Request, params ma 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) @@ -44,5 +44,5 @@ func handle_repo_contrib_index(w http.ResponseWriter, r *http.Request, params ma } params["merge_requests"] = result - render_template(w, "repo_contrib_index", params) + renderTemplate(w, "repo_contrib_index", params) } |