go2hx

manual

github

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

 ERROR  stdgo/_internal/slices/Slices_testEqualFunc.hx:5: characters 221-223

  5 |                 var _got = (stdgo._internal.slices.Slices_equalFunc.equalFunc(_test._s1, _test._s2, function(_0:stdgo.GoInt, _1:stdgo.GoInt):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoInt), _0, _1)) : Bool);
    |                                                                                                                                                                                                                             ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testEqualFunc.hx:13: characters 233-235

 13 |                 var _got = (stdgo._internal.slices.Slices_equalFunc.equalFunc(_test._s1, _test._s2, function(_0:stdgo.GoFloat64, _1:stdgo.GoFloat64):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoFloat64), _0, _1)) : Bool);
    |                                                                                                                                                                                                                                         ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testEqualFunc.hx:19: characters 239-241

 19 |                 var _got = (stdgo._internal.slices.Slices_equalFunc.equalFunc(_test._s1, _test._s2, function(_0:stdgo.GoFloat64, _1:stdgo.GoFloat64):Bool return stdgo._internal.slices.Slices__equalNaN._equalNaN((0 : stdgo.GoFloat64), _0, _1)) : Bool);
    |                                                                                                                                                                                                                                               ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testCompareFunc.hx:11: characters 279-281

 11 |                 var _got = (stdgo._internal.slices.Slices_compareFunc.compareFunc(_test._s1, _test._s2, stdgo._internal.slices.Slices__equalToCmp._equalToCmp(function(_0:stdgo.GoInt, _1:stdgo.GoInt):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoInt), _0, _1))) : stdgo.GoInt);
    |                                                                                                                                                                                                                                                                                       ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testCompareFunc.hx:19: characters 291-293

 19 |                 var _got = (stdgo._internal.slices.Slices_compareFunc.compareFunc(_test._s1, _test._s2, stdgo._internal.slices.Slices__equalToCmp._equalToCmp(function(_0:stdgo.GoFloat64, _1:stdgo.GoFloat64):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoFloat64), _0, _1))) : stdgo.GoInt);
    |                                                                                                                                                                                                                                                                                                   ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testIndexFunc.hx:5: characters 267-269

  5 |                 var _got = (stdgo._internal.slices.Slices_indexFunc.indexFunc(_test._s, stdgo._internal.slices.Slices__equalToIndex._equalToIndex(function(_0:stdgo.GoInt, _1:stdgo.GoInt):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoInt), _0, _1), _test._v)) : stdgo.GoInt);
    |                                                                                                                                                                                                                                                                           ^^
    | Too many arguments

         | For function argument '_f'

 ERROR  stdgo/_internal/slices/Slices_testIndexFunc.hx:13: characters 273-278

 13 |             var _got = (stdgo._internal.slices.Slices_indexFunc.indexFunc(_s1, stdgo._internal.slices.Slices__equalToIndex._equalToIndex(function(key:stdgo.GoString, value:stdgo.GoString):Bool return stdgo._internal.slices.Slices__equal._equal(("" : stdgo.GoString), key, value), ("HI" : stdgo.GoString))) : stdgo.GoInt);
    |                                                                                                                                                                                                                                                                                 ^^^^^
    | Too many arguments

         | For function argument '_f'

 ERROR  stdgo/_internal/slices/Slices_testContainsFunc.hx:5: characters 273-275

  5 |                 var _got = (stdgo._internal.slices.Slices_containsFunc.containsFunc(_test._s, stdgo._internal.slices.Slices__equalToIndex._equalToIndex(function(_0:stdgo.GoInt, _1:stdgo.GoInt):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoInt), _0, _1), _test._v)) : Bool);
    |                                                                                                                                                                                                                                                                                 ^^
    | Too many arguments

         | For function argument '_f'

 ERROR  stdgo/_internal/slices/Slices_testContainsFunc.hx:13: characters 279-284

 13 |             var _got = (stdgo._internal.slices.Slices_containsFunc.containsFunc(_s1, stdgo._internal.slices.Slices__equalToIndex._equalToIndex(function(key:stdgo.GoString, value:stdgo.GoString):Bool return stdgo._internal.slices.Slices__equal._equal(("" : stdgo.GoString), key, value), ("HI" : stdgo.GoString))) : Bool);
    |                                                                                                                                                                                                                                                                                       ^^^^^
    | Too many arguments

         | For function argument '_f'

 ERROR  stdgo/_internal/slices/Slices_testContainsFunc.hx:19: characters 279-284

 19 |             var _got = (stdgo._internal.slices.Slices_containsFunc.containsFunc(_s1, stdgo._internal.slices.Slices__equalToIndex._equalToIndex(function(key:stdgo.GoString, value:stdgo.GoString):Bool return stdgo._internal.slices.Slices__equal._equal(("" : stdgo.GoString), key, value), ("hI" : stdgo.GoString))) : Bool);
    |                                                                                                                                                                                                                                                                                       ^^^^^
    | Too many arguments

         | For function argument '_f'

 ERROR  stdgo/_internal/slices/Slices_testClone.hx:22: characters 184-188

 22 |                 _t.errorf(("Clone(%v) = %#v, want %#v" : stdgo.GoString), stdgo.Go.toInterface((_s1.__slice__(0, (0 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoInt>)), stdgo.Go.toInterface(_got), stdgo.Go.toInterface((_s1.__slice__(0, (0 : stdgo.GoInt)) : stdgo.Slice<stdgo.GoInt>)));
    |                                                                                                                                                                                        ^^^^
    | Null<Unknown<0> : { length : stdgo.GoInt }> should be Any
    | For function argument 'value'

 ERROR  stdgo/_internal/slices/Slices_testCompactFunc.hx:6: characters 209-211

  6 |                 var _got = stdgo._internal.slices.Slices_compactFunc.compactFunc(_copy, function(_0:stdgo.GoInt, _1:stdgo.GoInt):Bool return stdgo._internal.slices.Slices__equal._equal((0 : stdgo.GoInt), _0, _1));
    |                                                                                                                                                                                                                 ^^
    | Too many arguments

         | For function argument '_eq'

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:11: characters 22-30

 11 |             if ((_s2.capacity < ((1000 : stdgo.GoInt) + (_s1.length) : stdgo.GoInt) : Bool)) {
    |                      ^^^^^^^^
    | Any has no field capacity

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:12: characters 137-145

 12 |                 _t.errorf(("after Grow(%v) cap = %d, want >= %d" : stdgo.GoString), stdgo.Go.toInterface(_s1), stdgo.Go.toInterface(_s2.capacity), stdgo.Go.toInterface(((1000 : stdgo.GoInt) + (_s1.length) : stdgo.GoInt)));
    |                                                                                                                                         ^^^^^^^^
    | Any has no field capacity

     ->  /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:646: characters 11-31

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

     ->  stdgo/_internal/slices/Slices_testGrow.hx:12: characters 112-146

      12 |                 _t.errorf(("after Grow(%v) cap = %d, want >= %d" : stdgo.GoString), stdgo.Go.toInterface(_s1), stdgo.Go.toInterface(_s2.capacity), stdgo.Go.toInterface(((1000 : stdgo.GoInt) + (_s1.length) : stdgo.GoInt)));
         |                                                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         | Called from here

         | For function argument '_args'

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:25: characters 71-79

 25 |                     stdgo._internal.slices.Slices_grow.grow(_s2, (_s2.capacity - (_s2.length) : stdgo.GoInt));
    |                                                                       ^^^^^^^^
    | Any has no field capacity

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:25: characters 87-93

 25 |                     stdgo._internal.slices.Slices_grow.grow(_s2, (_s2.capacity - (_s2.length) : stdgo.GoInt));
    |                                                                                       ^^^^^^
    | Any has no field length

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:33: characters 72-80

 33 |                     stdgo._internal.slices.Slices_grow.grow(_s2, ((_s2.capacity - (_s2.length) : stdgo.GoInt) + (1 : stdgo.GoInt) : stdgo.GoInt));
    |                                                                        ^^^^^^^^
    | Any has no field capacity

 ERROR  stdgo/_internal/slices/Slices_testGrow.hx:33: characters 88-94

 33 |                     stdgo._internal.slices.Slices_grow.grow(_s2, ((_s2.capacity - (_s2.length) : stdgo.GoInt) + (1 : stdgo.GoInt) : stdgo.GoInt));
    |                                                                                        ^^^^^^
    | Any has no field length

 ERROR  stdgo/_internal/slices/Slices_testClip.hx:15: characters 17-25

 15 |         if (_s2.capacity != ((3 : stdgo.GoInt))) {
    |                 ^^^^^^^^
    | Any has no field capacity

 ERROR  stdgo/_internal/slices/Slices_testClip.hx:16: characters 126-134

 16 |             _t.errorf(("cap(Clip(%v)) = %d, want 3" : stdgo.GoString), stdgo.Go.toInterface(_orig), stdgo.Go.toInterface(_s2.capacity));
    |                                                                                                                              ^^^^^^^^
    | Any has no field capacity

     ->  /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:646: characters 11-31

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

     ->  stdgo/_internal/slices/Slices_testClip.hx:16: characters 101-135

      16 |             _t.errorf(("cap(Clip(%v)) = %d, want 3" : stdgo.GoString), stdgo.Go.toInterface(_orig), stdgo.Go.toInterface(_s2.capacity));
         |                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         | Called from here

         | For function argument '_args'