diff options
| author | Runxi Yu <me@runxiyu.org> | 2025-03-31 16:59:18 +0800 |
|---|---|---|
| committer | Runxi Yu <me@runxiyu.org> | 2025-03-31 16:59:18 +0800 |
| commit | 655b6b211ae6df0186abd740f248939f7ddeaec1 (patch) | |
| tree | ec5cdbbc52222f62c8fbb0bcf2a1aa7a9f6eb8b6 /users.go | |
| parent | Correct table headers in MR indices (diff) | |
| download | forge-655b6b211ae6df0186abd740f248939f7ddeaec1.tar.gz forge-655b6b211ae6df0186abd740f248939f7ddeaec1.tar.zst forge-655b6b211ae6df0186abd740f248939f7ddeaec1.zip | |
Add descriptive comments to most Go functions
Diffstat (limited to '')
| -rw-r--r-- | users.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,9 @@ import ( "github.com/jackc/pgx/v5" ) +// addUserSSH adds a new user solely based on their SSH public key. +// +// TODO: Audit all users of this function. func addUserSSH(ctx context.Context, pubkey string) (userID int, err error) { var txn pgx.Tx |
