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
I have this annoying issue when organizing imports will always prefer slog from "golang.org/x/exp/slog" instead of standard library. The go version in go.mod states go 1.21.0 so I have a reason to believe that log/slog should have priority in this case. I have no idea if this is a bug or configurable behavior, at least I have not found anything related to specific preferences when it comes to package imports.
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
-
Hi!
I have this annoying issue when organizing imports will always prefer slog from
"golang.org/x/exp/slog"
instead of standard library. The go version ingo.mod
statesgo 1.21.0
so I have a reason to believe thatlog/slog
should have priority in this case. I have no idea if this is a bug or configurable behavior, at least I have not found anything related to specific preferences when it comes to package imports.Any ideas or tips how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions