go2hx

manual

github

Module stdgo.net.rpc.jsonrpc has compilation errors, please do not use:

 ERROR  stdgo/_internal/net/rpc/jsonrpc/Jsonrpc_T_serverCodec_static_extension.hx:20: characters 35-38

 20 |             _b = (stdgo.Go.setRef(nil) : stdgo.Ref<stdgo._internal.encoding.json.Json_RawMessage.RawMessage>);
    |                                   ^^^
    | Unknown identifier : nil

     ->  /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/net/rpc/jsonrpc/Jsonrpc_T_serverCodec_static_extension.hx:20: characters 19-39

      20 |             _b = (stdgo.Go.setRef(nil) : stdgo.Ref<stdgo._internal.encoding.json.Json_RawMessage.RawMessage>);
         |                   ^^^^^^^^^^^^^^^^^^^^
         | Called from here

 ERROR  (macro) stdgo/_internal/net/rpc/Rpc_Server_static_extension.hx:13: characters 64-110

 13 |             _w.header().set(("Content-Type" : stdgo.GoString), ("text/plain; charset=utf-8" : stdgo.GoString));
    |                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | stdgo.GoString should be stdgo.Slice<stdgo.GoString>
    | For function argument 'value'