-
Notifications
You must be signed in to change notification settings - Fork 819
Staticcheck keeps showing false warnings pertaining to code in files of package main. How to fix?
#3169
-
Types and functions that exist in files of package main are not being recognized in main.go, so they flag as undefined warnings by the staticchecker(?!).
The app runs without issues, but it's annoying to see so many warnings that are false. One solution is place all code in the main.go file, but that is not great either.
Is there a way to fix this problem? I like having the staticchecker, but also want it to work properly.
Sam
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
+1
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment