-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime error: hash of unhashable type map[string]interface {} #110
Comments
Hi @mateors. You are probably doing something wrong. You do a GroupBy over a list of maps. So in your keySelector function
|
@kalaninja Thank you very much, It works, But I am wondering How can I use ToMap() instead of First() |
|
@kalaninja Thank you very much, you are superb! I noticed you used GroupByT but I want to use GroupBy only, no generics. I am concern about performance.
above code not working. |
that is probably because you are trying to read the resulting data from |
@kalaninja No its compiling error, code seems okay but I don't know why not showing error. Could you please compile at your end? Advance thanks for your kind quick response. |
@mateors I think the reason might be because |
@kalaninja Thank you, following code working now. Jajakallah. You make my day. I am fasting as we are celebrating Ramadan, I pray for your success.
|
I was glad to help @mateors. Welcome. And happy celebration. |
Unable to perform group by query on the following dataset
Error details:
goroutine 1 [running]:
github.com/ahmetb/go-linq/v3.Query.GroupBy.func1()
E:/GOLANG/pkg/mod/github.com/ahmetb/go-linq/v3@v3.2.0/groupby.go:21 +0x15f
github.com/ahmetb/go-linq/v3.Query.First({0x5f0aa0?})
E:/GOLANG/pkg/mod/github.com/ahmetb/go-linq/v3@v3.2.0/result.go:188 +0x1a
main.main()
The text was updated successfully, but these errors were encountered: