aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/testdata/extract/extract_function/extract_issue_44813.go.golden
blob: 3198c9fa2fcbc6e04f2bab9af2cb2ebc80a64214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- functionextraction_extract_issue_44813_6_2 --
package extract

import "fmt"

func main() {
	//@mark(exSt9, "x")
	x := newFunction() //@mark(exEn9, "}")
	//@extractfunc(exSt9, exEn9)
	fmt.Printf("%x\n", x)
}

func newFunction() []rune {
	x := []rune{}
	s := "HELLO"
	for _, c := range s {
		x = append(x, c)
	}
	return x
}