github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/wrap_gostmt_ellipsis.golden (about) 1 package lgo_exec 2 3 import pkg0 "github.com/yunabe/lgo/core" 4 import "fmt" 5 func xy(arg ...int) { 6 fmt.Println(arg) 7 } 8 func array() []int { 9 return []int{3, 4} 10 } 11 func lgo_init() { 12 { 13 gofn := xy 14 goarg := array() 15 ectx := pkg0.InitGoroutine() 16 go func() { 17 defer pkg0.FinalizeGoroutine(ectx) 18 gofn(goarg...) 19 }() 20 } 21 }