github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/extract/extract_function/extract_redefine.go.golden (about) 1 -- functionextraction_extract_redefine_7_2 -- 2 package extract 3 4 import "strconv" 5 6 func _() { 7 i, err := strconv.Atoi("1") 8 u, err := newFunction() //@extractfunc("u", ")") 9 if i == u || err == nil { 10 return 11 } 12 } 13 14 func newFunction() (int, error) { 15 u, err := strconv.Atoi("2") 16 return u, err 17 } 18