You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NewCollisionError returns new instance of CollisionError error.
func NewCollisionError(uuid *uuid.UUID) *CollisionError {
return &CollisionError{errorInstanceID: uuid.NewUUID(), collisionError: collisionError{Uuid: uuid}}
}
Parameter name uuid collides with the package uuid and results in the parameter's function being called instead of the uuid package's NewUUID function.
Compile errors result.
What did you want to happen?
The parameter name should be munged to something like uuidArg or something (to avoid collision).
The text was updated successfully, but these errors were encountered:
What happened?
Define a conjure errors type like this:
This generates code like this:
Parameter name
uuid
collides with the packageuuid
and results in the parameter's function being called instead of theuuid
package'sNewUUID
function.Compile errors result.
What did you want to happen?
The parameter name should be munged to something like uuidArg or something (to avoid collision).
The text was updated successfully, but these errors were encountered: