Skip to content
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: comparing uncomparable type []*map[string]string #147

Open
mlitanin opened this issue Jul 2, 2018 · 0 comments
Open

runtime error: comparing uncomparable type []*map[string]string #147

mlitanin opened this issue Jul 2, 2018 · 0 comments

Comments

@mlitanin
Copy link

mlitanin commented Jul 2, 2018

A []map[string]string jsonapi:"attr,a" json:"a"``

server.go:2923: http: panic serving [::1]:52348: runtime error: comparing uncomparable type []*map[string]string
goroutine 827 [running]:
net/http.(*conn).serve.func1(0xc42019a500)
	/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x1963240, 0xc42069b410)
	/usr/local/go/src/runtime/panic.go:505 +0x229
github.com/google/jsonapi.visitModelNode(0x19486a0, 0xc42058e2a0, 0xc4205b1dd8, 0x1093f01, 0x19486a0, 0xc42058e2a0, 0x16)
	/Users/mgepby/Documents/Development/my_project/src/github.com/google/jsonapi/response.go:344 +0x987
github.com/google/jsonapi.marshalOne(0x19486a0, 0xc42058e2a0, 0x16, 0x1a397a0, 0xc42058e2a0)
	/Users/mgepby/Documents/Development/my_project/src/github.com/google/jsonapi/response.go:143 +0x56
github.com/google/jsonapi.Marshal(0x19486a0, 0xc42058e2a0, 0xc4205b1ec8, 0x100da15, 0xc4205b1ee8, 0xa437d4cb)
	/Users/mgepby/Documents/Development/my_project/src/github.com/google/jsonapi/response.go:111 +0x303
github.com/google/jsonapi.MarshalPayload(0x1b6eae0, 0xc42058e1c0, 0x19486a0, 0xc42058e2a0, 0xc42058e1c0, 0xc4205a5080)
	/Users/mgepby/Documents/Development/my_project/src/github.com/google/jsonapi/response.go:66 +0x4d
my_project/controller/_protected_api/gateway.GetIsraelToremetSpec(0x1b74440, 0xc42058e1c0, 0xc420246100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant