I use the testify/assert package in unit testing and they have a very helpful ability to compare two structs based only on exported values. This makes it possible for me to compare GRPC generated structs which have (generated) internal members that differ.
https://pkg.go.dev/github.com/stretchr/testify/assert#EqualExportedValues
This would be a very useful option for constructing sets as well.