We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c10345 commit 54f405bCopy full SHA for 54f405b
error_default.go
@@ -36,6 +36,10 @@ func (*noCopy) Unlock() {}
36
// A shallow copy would inadvertently share these underlying fields,
37
// leading to incorrect behavior and data races in a concurrent context.
38
// Consequently, all methods take the type by pointer and not by value.
39
+//
40
+// From https://go.dev/wiki/CodeReviewComments#receiver-type:
41
+// > If the receiver is a struct, array or slice and any of its elements is a pointer to something that might be mutating,
42
+// > prefer a pointer receiver, as it will make the intention clearer to the reader.
43
// swagger:ignore
44
type DefaultError struct {
45
_ noCopy
0 commit comments