1
0
mirror of https://github.com/golang/go synced 2024-11-05 23:36:12 -07:00
go/refactor/eg/testdata/F.template
Paul Nasrat 89156360f9 go.tools/refactor/eg: Support promoted fields and methods.
As per http://golang.org/ref/spec#Struct_types enable eg tool
to wildcard match against promoted fields and methods.

LGTM=adonovan
R=adonovan, gordon.klaus
CC=golang-codereviews
https://golang.org/cl/129260043
2014-08-25 16:26:54 -04:00

8 lines
125 B
Plaintext

package templates
// Test
import "sync"
func before(s sync.RWMutex) { s.Lock() }
func after(s sync.RWMutex) { s.RLock() }