github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/rename.golden (about) 1 package lgo_exec 2 3 func Def_f(n int) int { 4 return n * n 5 } 6 func Fn(n int) int { 7 b := func() int { return 10 } 8 return b() 9 } 10 type Def_st struct { 11 Def_value int 12 } 13 func (s *Ref_st) Def_getValue() float32 { 14 return float32(s.Ref_value) 15 } 16 type Def_myInter interface { 17 Method0() 18 Def_method() 19 } 20 func Def_getInter() interface { 21 Def_method() 22 } { 23 var i Ref_myInter 24 return i 25 } 26 func lgo_init() { 27 28 Ref_v = Ref_f(3) 29 Ref_getInter().Ref_method() 30 Ref_myInter(nil).Method0() 31 Ref_s = Ref_st{ 32 Ref_value: 34, 33 } 34 } 35 var ( 36 Def_v int 37 Def_s Ref_st 38 )