github.com/azazeal/revive@v1.0.9/testdata/redefines-builtin-id.go (about) 1 package fixtures 2 3 func (this data) vmethod() { 4 nil := true // MATCH /assignment creates a shadow of built-in identifier nil/ 5 iota = 1 // MATCH /assignment modifies built-in identifier iota/ 6 } 7 8 func append(i, j int) { // MATCH /redefinition of the built-in function append/ 9 10 } 11 12 type Type int16 // MATCH /redefinition of the built-in type Type/ 13 14 func delete(set []int64, i int) (y []int64) { // MATCH /redefinition of the built-in function delete/ 15 for j, v := range set { 16 if j != i { 17 y = append(y, v) 18 } 19 } 20 return 21 }