go2hx

manual

github

Module stdgo.encoding.gob has compilation errors, please do not use:

 ERROR  stdgo/encoding/gob/Gob.hx:271: characters 66-79

  271 |     function get_a():stdgo.Pointer<haxe.ds.Vector<StdTypes.Int>> return this.a;
      |                                                                  ^^^^^^^^^^^^^
      | error: stdgo.Ref<stdgo.Ref<stdgo.GoArray<stdgo.GoInt>>> should be haxe.ds.Vector<Int>
      | have: stdgo.Pointer<stdgo.Ref<...>>
      | want: stdgo.Pointer<haxe.ds.Vector<...>>

 ERROR  stdgo/encoding/gob/Gob.hx:273: characters 9-19

  273 |         this.a = v;
      |         ^^^^^^^^^^
      | error: haxe.ds.Vector<Int> should be stdgo.Ref<stdgo.Ref<stdgo.GoArray<stdgo.GoInt>>>
      | have: stdgo.Pointer<haxe.ds.Vector<...>>
      | want: stdgo.Pointer<stdgo.Ref<...>>

 ERROR  stdgo/encoding/gob/Gob.hx:277: characters 57-70

  277 |     function get_s():stdgo.Pointer<Array<StdTypes.Int>> return this.s;
      |                                                         ^^^^^^^^^^^^^
      | error: stdgo.Ref<stdgo.Ref<stdgo.Slice<stdgo.GoInt>>> should be Array<Int>
      | have: stdgo.Pointer<stdgo.Ref<...>>
      | want: stdgo.Pointer<Array<...>>

 ERROR  stdgo/encoding/gob/Gob.hx:279: characters 9-19

  279 |         this.s = v;
      |         ^^^^^^^^^^
      | error: Array<Int> should be stdgo.Ref<stdgo.Ref<stdgo.Slice<stdgo.GoInt>>>
      | have: stdgo.Pointer<Array<...>>
      | want: stdgo.Pointer<stdgo.Ref<...>>

 ERROR  stdgo/encoding/gob/Gob.hx:288: characters 249-250

  288 |     public function new(?a:stdgo.Pointer<haxe.ds.Vector<StdTypes.Int>>, ?s:stdgo.Pointer<Array<StdTypes.Int>>, ?m:stdgo.Pointer<stdgo.Pointer<stdgo.GoMap<stdgo.GoString, stdgo.GoInt>>>) this = new stdgo._internal.encoding.gob.Gob_Indirect.Indirect(a, s, m);
      |                                                                                                                                                                                                                                                         ^
      | error: haxe.ds.Vector<Int> should be stdgo.Ref<stdgo.Ref<stdgo.GoArray<stdgo.GoInt>>>
      | have: Null<haxe.ds.Vector<...>>
      | want: Null<stdgo.Ref<...>>

 ERROR  stdgo/encoding/gob/Gob.hx:2271: characters 53-66

 2271 |     function get_n():haxe.ds.Vector<StdTypes.Float> return this.n;
      |                                                     ^^^^^^^^^^^^^
      | stdgo.Ref<stdgo.GoArray<stdgo.GoFloat64>> should be haxe.ds.Vector<Float>

 ERROR  stdgo/encoding/gob/Gob.hx:2273: characters 9-19

 2273 |         this.n = v;
      |         ^^^^^^^^^^
      | haxe.ds.Vector<Float> should be stdgo.Ref<stdgo.GoArray<stdgo.GoFloat64>>

 ERROR  stdgo/encoding/gob/Gob.hx:2277: characters 48-64

 2277 |     function get_strs():haxe.ds.Vector<String> return this.strs;
      |                                                ^^^^^^^^^^^^^^^^
      | stdgo.Ref<stdgo.GoArray<stdgo.GoString>> should be haxe.ds.Vector<String>

 ERROR  stdgo/encoding/gob/Gob.hx:2279: characters 9-22

 2279 |         this.strs = v;
      |         ^^^^^^^^^^^^^
      | haxe.ds.Vector<String> should be stdgo.Ref<stdgo.GoArray<stdgo.GoString>>

 ERROR  stdgo/encoding/gob/Gob.hx:2323: characters 1-2

 2323 | n,
      | ^
      | Null<haxe.ds.Vector<Float>> should be Null<stdgo.Ref<stdgo.GoArray<stdgo.GoFloat64>>>
      | For optional function argument 'n'

 ERROR  stdgo/encoding/gob/Gob.hx:2573: characters 45-103

 2573 |     function get_a():haxe.ds.Vector<String> return haxe.ds.Vector.fromArrayCopy([for (i in this.a) i]);
      |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | error: stdgo.GoString should be String
      | have: haxe.ds.Vector<stdgo.GoString>
      | want: haxe.ds.Vector<String>

 ERROR  stdgo/encoding/gob/Gob.hx:2590: characters 45-103

 2590 |     function get_a():haxe.ds.Vector<String> return haxe.ds.Vector.fromArrayCopy([for (i in this.a) i]);
      |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | error: stdgo.GoString should be String
      | have: haxe.ds.Vector<stdgo.GoString>
      | want: haxe.ds.Vector<String>

 ERROR  stdgo/_internal/encoding/gob/Gob_testNilPointerPanics.hx:8: characters 76-83

    8 |         } : stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>), __2 = (stdgo.Go.setRef(_intMap) : stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>>), __3:stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>> = (null : stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>>), __4:stdgo.GoInt = (0 : stdgo.GoInt), __5:stdgo.Chan<Bool> = (null : stdgo.Chan<Bool>), __6:stdgo.Ref<stdgo.Chan<Bool>> = (null : stdgo.Ref<stdgo.Chan<Bool>>), __7:stdgo.Slice<stdgo.GoString> = (null : stdgo.Slice<stdgo.GoString>), __8 = (new stdgo.Slice<stdgo.GoString>((1 : stdgo.GoInt).toBasic(), 0).__setString__() : stdgo.Slice<stdgo.GoString>), __9:stdgo.Ref<stdgo.Slice<stdgo.GoString>> = (null : stdgo.Ref<stdgo.Slice<stdgo.GoString>>);
      |                                                                            ^^^^^^^
      | Unknown identifier : _intMap

       ->  /home/runner/haxe/versions/a97dc16/std/haxe/macro/Context.hx:504: characters 10-30

       504 |   return load("typeof", 1)(e);
           |          ^^^^^^^^^^^^^^^^^^^^
           | Called from here

       ->  stdgo/Go.macro.hx:476: characters 11-31

       476 |   var t = Context.typeof(expr);
           |           ^^^^^^^^^^^^^^^^^^^^
           | Called from here

       ->  stdgo/_internal/encoding/gob/Gob_testNilPointerPanics.hx:8: characters 60-84

         8 |         } : stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>), __2 = (stdgo.Go.setRef(_intMap) : stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>>), __3:stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>> = (null : stdgo.Ref<stdgo.GoMap<stdgo.GoInt, stdgo.GoInt>>), __4:stdgo.GoInt = (0 : stdgo.GoInt), __5:stdgo.Chan<Bool> = (null : stdgo.Chan<Bool>), __6:stdgo.Ref<stdgo.Chan<Bool>> = (null : stdgo.Ref<stdgo.Chan<Bool>>), __7:stdgo.Slice<stdgo.GoString> = (null : stdgo.Slice<stdgo.GoString>), __8 = (new stdgo.Slice<stdgo.GoString>((1 : stdgo.GoInt).toBasic(), 0).__setString__() : stdgo.Slice<stdgo.GoString>), __9:stdgo.Ref<stdgo.Slice<stdgo.GoString>> = (null : stdgo.Ref<stdgo.Slice<stdgo.GoString>>);
           |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^
           | Called from here