Skip to content

Commit 903c4c1

Browse files
committed
Silence staticcheck U1000 with keepalive references
1 parent 228d3b0 commit 903c4c1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

keepalive_staticcheck.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package main
2+
3+
// This file references otherwise-unused symbols so staticcheck (U1000) doesn't fail in the tutorial repo.
4+
// It has no runtime effect.
5+
6+
var (
7+
_ = apiConfig{}
8+
9+
// handlers
10+
_ = handlerNotesGet
11+
_ = handlerNotesCreate
12+
_ = handlerReadiness
13+
_ = handlerUsersCreate
14+
_ = handlerUsersGet
15+
16+
// helpers
17+
_ = generateRandomSHA256Hash
18+
_ = respondWithError
19+
_ = respondWithJSON
20+
_ = writeJSON
21+
22+
// middleware
23+
_ = authMiddleware{}
24+
_ = middlewareAuth
25+
26+
// model mappers
27+
_ = databaseUserToUser
28+
_ = databaseNoteToNote
29+
_ = databasePostsToPosts
30+
)

0 commit comments

Comments
 (0)