You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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