-
Notifications
You must be signed in to change notification settings - Fork 962
-
I don't understand what this line does or why is it useful. Could some pleas explain it me? Thank you very much
type Querier interface { // ... } var _ Querier = (*Queries)(nil)
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
go-aegian
Feb 11, 2023
var _ Querier = (*Querier)(nil)
allows compiler to verify a struct implements the interface
Replies: 1 comment
-
var _ Querier = (*Querier)(nil)
allows compiler to verify a struct implements the interface
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
kyleconroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment