How can I check if two slices are equal?
Go – Checking the equality of two slices
gogo-reflect
Related Topic
- Go – Type converting slices of interfaces
- Go – Concatenate two slices in Go
- Go – How to find the difference between two slices of strings
- Go – How to find the type of an object in Go
- Go – Pointers vs. values in parameters and return values
- Go – How to compare if two structs, slices or maps are equal
- Go – nil slices vs non-nil slices vs empty slices in Go language
Best Answer
You should use reflect.DeepEqual()