-
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.
Answered by
go-aegian
Feb 11, 2023
Replies: 1 comment
-
var _ Querier = (*Querier)(nil) allows compiler to verify a struct implements the interface |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kyleconroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var _ Querier = (*Querier)(nil)
allows compiler to verify a struct implements the interface