github.com/v2fly/tools@v0.100.0/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 := fn0() //@extractfunc("u", ")") 9 if i == u || err == nil { 10 return 11 } 12 } 13 14 func fn0() (int, error) { 15 u, err := strconv.Atoi("2") 16 return u, err 17 } 18