Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / extract / extract_function / extract_return_complex.go.golden
1 -- functionextraction_extract_return_complex_8_2 --
2 package extract
3
4 import "fmt"
5
6 func _() (int, string, error) {
7         x := 1
8         y := "hello"
9         z, cond0, ret0, ret1, ret2 := fn0(y, x)
10         if cond0 {
11                 return ret0, ret1, ret2
12         } //@mark(exEn3, "}")
13         return x, z, nil
14         //@extractfunc(exSt3, exEn3)
15 }
16
17 func fn0(y string, x int) (string, bool, int, string, error) {
18         z := "bye"
19         if y == z {
20                 return "", true, x, y, fmt.Errorf("same")
21         } else {
22                 z = "hi"
23                 return "", true, x, z, nil
24         }
25         return z, false, 0, "", nil
26 }
27