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
type checking failed for main
prog.go2:28:17: 2-valued gs.prevStream.prevData() (value of type (T, bool)) where single value is expected
prog.go2:36:17: 2-valued gs.prevStream.prevData() (value of type (T, bool)) where single value is expected
The text was updated successfully, but these errors were encountered:
You're using the receive operator on the result of gs.prevStream.prevData(), which is two values, not a channel. The receive operator cannot be used on two values, hence the type check failure.
2-valued values cannot be assigned to two variables: https://go2goplay.golang.org/p/rKe_LDnHgM_m
The text was updated successfully, but these errors were encountered: