Browse Source
"git diff" and friends learned funcname patterns for Go language source files. * ag/userdiff-go-funcname: userdiff: add built-in pattern for golangmaint
Junio C Hamano
7 years ago
8 changed files with 37 additions and 0 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
type Test struct { |
||||
a Type |
||||
} |
||||
|
||||
func (t *Test) RIGHT(a Type) (Type, error) { |
||||
t.a = a |
||||
return ChangeMe, nil |
||||
} |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
func RIGHT() { |
||||
a := 5 |
||||
b := ChangeMe |
||||
} |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
type RIGHT interface { |
||||
a() Type |
||||
b() ChangeMe |
||||
} |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
func RIGHT(aVeryVeryVeryLongVariableName AVeryVeryVeryLongType, |
||||
anotherLongVariableName AnotherLongType) { |
||||
a := 5 |
||||
b := ChangeMe |
||||
} |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
type RIGHT struct { |
||||
a Type |
||||
b ChangeMe |
||||
} |
Loading…
Reference in new issue