github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/wrap_gostmt_multiret.golden (about)

     1  package lgo_exec
     2  
     3  import pkg0 "github.com/yunabe/lgo/core"
     4  import "fmt"
     5  func xy(x, y int) {
     6  	fmt.Println(x, y)
     7  }
     8  func two() (int, int) {
     9  	return 3, 4
    10  }
    11  func lgo_init() {
    12  	{
    13  		gofn := xy
    14  		goarg, goarg0 := two()
    15  		ectx := pkg0.InitGoroutine()
    16  		go func() {
    17  			defer pkg0.FinalizeGoroutine(ectx)
    18  			gofn(goarg, goarg0)
    19  		}()
    20  	}
    21  }