github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/extract/extract_function/extract_smart_initialization.go.golden (about)

     1  -- functionextraction_extract_smart_initialization_5_2 --
     2  package extract
     3  
     4  func _() {
     5  	var a []int
     6  	//@mark(exSt6, "a")
     7  	a, b := newFunction(a)           //@mark(exEn6, "4")
     8  	//@extractfunc(exSt6, exEn6)
     9  	a = append(a, b)
    10  }
    11  
    12  func newFunction(a []int) ([]int, int) {
    13  	a = append(a, 2)
    14  	b := 4
    15  	return a, b
    16  }
    17