StackOverflow Questions for Tag: go-cmp

buraky
buraky

Reputation: 1087

cmp.Equal gives panic message "cannot handle unexported field at .."

Score: 6

Views: 6181

Answers: 1

Read More
Loupi
Loupi

Reputation: 580

How can I determine struct equality based on fields and not struct types in Golang?

Score: 4

Views: 1889

Answers: 3

Read More
aliml92
aliml92

Reputation: 51

comparing nested slices while ignoring order

Score: 2

Views: 1141

Answers: 2

Read More
Charlie Clarke
Charlie Clarke

Reputation: 306

Go cmp - how to define custom equality for a map with a struct as its keys?

Score: 2

Views: 1597

Answers: 1

Read More
ufk
ufk

Reputation: 32104

properly comparing and finding difference between two structs with exported members using go-cmp

Score: 6

Views: 5410

Answers: 1

Read More
keraldi
keraldi

Reputation: 63

Why does go-cmp Equal() say that the structs are not deeply equal, even though all fields are deeply equal?

Score: 2

Views: 3620

Answers: 1

Read More
JohnnyIpcom
JohnnyIpcom

Reputation: 21

How to use go-сmp to compare such structs?

Score: 2

Views: 4161

Answers: 2

Read More
PreviousPage 1Next