go2hx

manual

github

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

 ERROR  stdgo/image/Image.hx:1055: characters 7-12

 1055 | class Image {
      |       ^^^^^
      | Name Image is already defined in this module

        70 | typedef Image = stdgo._internal.image.Image_Image.Image;
           |         ^^^^^
           | Previous declaration here

 ERROR  stdgo/_internal/image/draw/Draw_drawMask.hx:34: characters 37-91

   34 |                                 if (_internal.image.internal.imageutil.Imageutil_drawYCbCr.drawYCbCr(_dst0, _r?.__copy__(), _src0, _sp?.__copy__())) {
      |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | Type not found : _internal.image.internal.imageutil.Imageutil_drawYCbCr

 ERROR  stdgo/_internal/image/draw/Draw_drawMask.hx:97: characters 37-91

   97 |                                 if (_internal.image.internal.imageutil.Imageutil_drawYCbCr.drawYCbCr(_dst0, _r?.__copy__(), _src0, _sp?.__copy__())) {
      |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | Type not found : _internal.image.internal.imageutil.Imageutil_drawYCbCr

 ERROR  stdgo/_internal/image/gif/Gif_T_decoder_static_extension.hx:64: characters 181-261

   64 |                     _m.palette = ((new stdgo._internal.image.color.Color_Palette.Palette(0, 0) : stdgo._internal.image.color.Color_Palette.Palette).__append__(stdgo.Go.asInterface(...(_d._globalColorTable : Array<stdgo._internal.image.color.Color_Color.Color>))));
      |                                                                                                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | Spread unary operator is only allowed for unpacking the last argument in a call with rest arguments

       ->  /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:305: lines 305-310

       305 |   final selfType = Context.typeof(switch expr.expr {
         - |     [...]
       310 |   });
           |
           | Called from here

       ->  stdgo/_internal/image/gif/Gif_T_decoder_static_extension.hx:64: characters 160-262

        64 |                     _m.palette = ((new stdgo._internal.image.color.Color_Palette.Palette(0, 0) : stdgo._internal.image.color.Color_Palette.Palette).__append__(stdgo.Go.asInterface(...(_d._globalColorTable : Array<stdgo._internal.image.color.Color_Color.Color>))));
           |                                                                                                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           | Called from here

           | For function argument 'args'

 ERROR  (macro) stdgo/_internal/compress/lzw/Lzw_Writer_static_extension.hx:259: characters 21-64

  259 |                     stdgo._internal.compress.lzw.Lzw__i_3646893._i_3646893++;
      |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      | Type not found : stdgo._internal.compress.lzw.Lzw__i_3646893