Suggest directional channel parameters #6204
Unanswered
alexandear
asked this question in
Linter Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A linter for detecting function parameters of type
chan Tthat are only used for sending or receiving, and suggests converting them to send-onlychan<- Tor receive-only<-chan Tchannel types.Benefits of channel direction
Example
This code
should be suggested by a linter to
Real world examples
Beta Was this translation helpful? Give feedback.
All reactions