-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Refactor reflect.DeepEqual
to slices.Equal
from the standard lib
#721
Comments
The guide does mention learn-go-with-tests/arrays-and-slices.md Line 341 in 0619712
And go 1.21 has been out for a while: https://go.dev/doc/devel/release#go1.21.0 So I think it could make sense 🤔 but I am not sure, maybe the guide tries to make zero assumptions on the go version being used? 🤷 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey folks,
Would it make sense to add also the new way to compare slices in this chapter: https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/arrays-and-slices#write-enough-code-to-make-it-pass-4
So instead of using
reflect.DeepEqual
to useslices.Equal
.I could make a contribution to add this
The text was updated successfully, but these errors were encountered: