go2hx

manual

github

Module stdgo.net.http.pprof has compilation errors, please do not use:

 ERROR  stdgo/_internal/net/http/pprof/Pprof__serveError.hx:3: characters 60-106

   3 |         _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'

 ERROR  stdgo/_internal/net/http/pprof/Pprof__serveError.hx:4: characters 58-80

   4 |         _w.header().set(("X-Go-Pprof" : stdgo.GoString), ("1" : stdgo.GoString));
     |                                                          ^^^^^^^^^^^^^^^^^^^^^^
     | stdgo.GoString should be stdgo.Slice<stdgo.GoString>
     | For function argument 'value'

 ERROR  stdgo/_internal/crypto/tls/Tls_Conn_static_extension.hx:837: characters 209-257

 837 |     static public function _makeClientHello( _c:stdgo.Ref<stdgo._internal.crypto.tls.Tls_Conn.Conn>):{ var _0 : stdgo.Ref<stdgo._internal.crypto.tls.Tls_T_clientHelloMsg.T_clientHelloMsg>; var _1 : stdgo.Ref<_internal.crypto.ecdh.Ecdh_PrivateKey.PrivateKey>; var _2 : stdgo.Error; } {
     |                                                                                                                                                                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     | Type not found : _internal.crypto.ecdh.Ecdh_PrivateKey

 ERROR  stdgo/_internal/net/http/pprof/Pprof__durationExceedsWriteTimeout.hx:3: lines 3-5

   3 |         var __tmp__ = try {
   4 |             { _0 : (stdgo.Go.typeAssert((_r.context().value(stdgo.Go.toInterface(stdgo.Go.asInterface(stdgo._internal.net.http.Http_serverContextKey.serverContextKey))) : stdgo.Ref<stdgo._internal.net.http.Http_Server.Server>)) : stdgo.Ref<stdgo._internal.net.http.Http_Server.Server>), _1 : true };
   5 |         } catch(_) {
     |
     | Void should be { _1 : Bool, _0 : stdgo.Ref<stdgo._internal.net.http.Server> }

 ERROR  stdgo/_internal/net/http/Http__parsePostForm.hx:8: characters 19-98

   8 |         var _ct = (_r.header.get(("Content-Type" : stdgo.GoString))?.__copy__() : stdgo.GoString);
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     | Null<stdgo.Slice<stdgo.GoString>> should be stdgo.GoString

 ERROR  (macro) stdgo/_internal/net/http/Http_Header_static_extension.hx:17: characters 18-92

  17 |             if (!_internal.golang_dot_org.x.net.http.httpguts.Httpguts_validHeaderFieldName.validHeaderFieldName(_kv._key?.__copy__())) {
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     | Type not found : _internal.golang_dot_org.x.net.http.httpguts.Httpguts_validHeaderFieldName