Re: [go-nuts] Re: syscall/js: JS Module Dynamic Imports?

2020-10-05 Thread Eduard Castany
/spikenow.com/r/a/?ref=spike-organic-signature&_ts=pengd> [image: > pengd] > > On September 29, 2020 at 12:55 GMT, Eduard Castany > wrote: > > I guess this works on node.js but I was referring to the browser > environment. Where normal JavaScript can just `import

[go-nuts] Re: syscall/js: JS Module Dynamic Imports?

2020-09-29 Thread Eduard Castany
;) > ``` > Is this what you were asking about? > > El martes, 29 de septiembre de 2020 a las 9:13:03 UTC+1, > eduard@gmail.com escribió: > >> In JavaScript we can import >> <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import>

[go-nuts] syscall/js: JS Module Dynamic Imports?

2020-09-29 Thread Eduard Castany
In JavaScript we can import JavaScript modules statically and dynamically. How could we import a JavaScript module dynamically in Go? The closest/simplest thing may be to add an HTML script tag into the page

[go-nuts] Does HTTP/2 Push() send PUSH_PROMISE and data together?

2018-03-05 Thread Eduard Urbach
I have a question regarding the HTTP/2 Pusher interface and how it handles PUSH_PROMISE and the data transmission. >From the comments in the interface code: // Handlers that wish to push URL X should call Push before sending any // data that may trigger a request for URL X. This avoids a race wh

[go-nuts] Re: locking memory pages

2017-09-13 Thread eduard
Take a look on this post: https://medium.com/samsara-engineering/running-go-on-low-memory-devices-536e1ca2fe8f and function https://golang.org/pkg/runtime/debug/#FreeOSMemory to reduce RSS of the process. HTH, Eduard среда, 13 сентября 2017 г., 0:18:50 UTC+3 пользователь Ganesh Sangle написал