mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
15 lines
347 B
Go
15 lines
347 B
Go
package fixtures
|
|
|
|
type data struct {
|
|
num int
|
|
key *string
|
|
items map[string]bool
|
|
}
|
|
|
|
func (this data) vmethod() {
|
|
this.num = 8 // MATCH /suspicious assignment to a by-value method receiver/
|
|
*this.key = "v.key"
|
|
this.items = make(map[string]bool) // MATCH /suspicious assignment to a by-value method receiver/
|
|
this.items["vmethod"] = true
|
|
}
|