From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- http_auth.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'http_auth.go') diff --git a/http_auth.go b/http_auth.go index 8208daf..03b7e2b 100644 --- a/http_auth.go +++ b/http_auth.go @@ -7,6 +7,8 @@ import ( "net/http" ) +// getUserFromRequest returns the user ID and username associated with the +// session cookie in a given [http.Request]. func getUserFromRequest(request *http.Request) (id int, username string, err error) { var sessionCookie *http.Cookie -- cgit v1.2.3