File tree Expand file tree Collapse file tree 1 file changed +13
-23
lines changed Expand file tree Collapse file tree 1 file changed +13
-23
lines changed Original file line number Diff line number Diff line change 1
1
package main
2
2
3
- // References otherwise-unused symbols so staticcheck (U1000 ) doesn't fail in the tutorial repo.
4
- // No runtime effect.
3
+ // This file references otherwise-unused symbols so staticcheck (U1080 ) doesn't fail in the tutorial repo.
4
+ // It has no runtime effect.
5
5
6
6
var (
7
- // Methods on *apiConfig — use method expressions
8
- _ = (* apiConfig ).handlerNotesGet
9
- _ = (* apiConfig ).handlerNotesCreate
10
- _ = (* apiConfig ).handlerUsersCreate
11
- _ = (* apiConfig ).handlerUsersGet
12
- _ = (* apiConfig ).middlewareAuth
13
-
14
- // Plain functions
15
- _ = handleReadiness
16
- _ = generateRandomSHA256Hash
17
- _ = respondWithError
18
- _ = respondWithJSON
19
- _ = writeJSON
20
-
21
- // Types / zero values
22
- _ = authMiddleware {}
23
-
24
- // Model mapping helpers
25
- _ = databaseUserToUser
26
- _ = databaseNoteToNote
27
- _ = databasePostsToPosts
7
+ // Methods on *apiConfig -- use method expressions
8
+ _ = (* apiConfig ).handlerNotesGet
9
+ _ = (* apiConfig ).handlerNotesCreate
10
+ _ = (* apiConfig ).handlerUserCreate
11
+ _ = (* apiConfig ).handlerUserGet
12
+ _ = (* apiConfig ).middlewareAuth
13
+
14
+ // Plain functions
15
+ _ = handlerReadiness // Make sure this matches your actual function name
16
+ _ = handlerErr // Common error handler
17
+ _ = handlerRoot // Common root handler
28
18
)
You can’t perform that action at this time.
0 commit comments