Skip to content

Instantly share code, notes, and snippets.

@mottet-dev
Created July 10, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottet-dev/66f274d99260dc92888b1490075134b0 to your computer and use it in GitHub Desktop.
Save mottet-dev/66f274d99260dc92888b1490075134b0 to your computer and use it in GitHub Desktop.
Go test - AreSlicesEqual
func AreSlicesEqual(a, b []int) bool {
if len(a) != len(b) {
return false
}
for _, i := range a {
if !DoesSliceIncludesInt(i, b) {
return false
}
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment