github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/rename_other_pkgs.golden (about) 1 package lgo_exec 2 3 import pkg0 "lgo/pkg0" 4 import pkg1 "github.com/yunabe/lgo/core" 5 // Renaming to access unexported names in other packages is broken. 6 func Def_myFunc() { 7 a := pkg0.Ref_f(3) 8 s := pkg0.Ref_st{ 9 Ref_value: a, 10 } 11 var i interface{} = &s 12 i.(*pkg0.Ref_st).Ref_getValue() 13 } 14 func lgo_init() { 15 Ref_a = pkg0.Ref_f(3) 16 Ref_s = pkg0.Ref_st{ 17 Ref_value: 20, 18 } 19 Ref_i = &Ref_s 20 pkg1.LgoPrintln(Ref_i.(*pkg0.Ref_st).Ref_getValue()) 21 } 22 var ( 23 Def_a int 24 Def_s pkg0. 25 Ref_st 26 27 Def_i interface{} 28 )