Lucky hour! Grab a free trial license — offer ends in 00:59:58. Claim now
The analyzer detected a potential error related to a variable value assigned to itself.
The example:
type User struct {
name string
}
func (u *User) SetName (name string) {
name = name
}
The name parameter is assigned its own value, which is an error. To fix it, assign the parameter value to the u.name field instead:
func (u *User) SetName (name string) {
u.name = name
}
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: