github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/stub/stub_multi_var.go.golden (about) 1 -- suggestedfix_stub_multi_var_9_38 -- 2 package stub 3 4 import "io" 5 6 // This test ensures that a variable declaration that 7 // has multiple values on the same line can still be 8 // analyzed correctly to target the interface implementation 9 // diagnostic. 10 var one, two, three io.Reader = nil, &multiVar{}, nil //@suggestedfix("&", "refactor.rewrite") 11 12 type multiVar struct{} 13 14 // Read implements io.Reader 15 func (*multiVar) Read(p []byte) (n int, err error) { 16 panic("unimplemented") 17 } 18