aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 16:20:37 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 16:47:01 +0800
commitfca61272da308080cc2b007a0759d7ea2fb4043b (patch)
treee16021f4960c887bb475c43e27793adbe48a8f6f /http_handle_repo_index.go
parentlint: Disable dogsled (diff)
downloadforge-fca61272da308080cc2b007a0759d7ea2fb4043b.tar.gz
forge-fca61272da308080cc2b007a0759d7ea2fb4043b.tar.zst
forge-fca61272da308080cc2b007a0759d7ea2fb4043b.zip
HTTP: Use Go-style comments for Go, not C-style comments
Diffstat (limited to 'http_handle_repo_index.go')
-rw-r--r--http_handle_repo_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go
index 6534df1..4a60af1 100644
--- a/http_handle_repo_index.go
+++ b/http_handle_repo_index.go
@@ -59,14 +59,14 @@ func httpHandleRepoIndex(w http.ResponseWriter, req *http.Request, params map[st
return
}
- /* README */
+ // README
readmeRaw, err := reader.ReadData()
if err != nil {
readmeRaw = nil
}
readmeFilename, readmeRendered := renderReadme(readmeRaw, "README.md")
- /* Commits */
+ // Commits
var commits []commitDisplay
for {
id, err := reader.ReadData()