You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this console package still being supported? Is there a different preferred way to generalize console access in gopherjs? There is the start to a Writer type at the end that doesn't look like it was ever finished. I've made it work in my version but if there is another way folks are accessing the js console routines, I don't want to create further noise here.
The version I got from GitHub crashed on the first call to Write. There is
a for loop with 'i' initialized to length of the byte slice when it looks
like it should start at length - 1.
And the Write appears to be a no-op if the slice passed it doesn't have a
newline in it. It is missing logic that would buffer the slice for later
use.
I'm wondering if I got a bad version of the package? The last commit seems
to have been made Jan 19, 2015 in what I looked at today.
BTW, when I rewrote it, I did it without the bytes package as appending to
a byte slice is well supported in gopherjs and it made the code look pretty
good.
As a pull request or diffs in email? I also modified the String version to remove some three extra copies. I’m happy to show them all. It’s yours to decide what to keep. Your other packages are life savers so you know your audience. I remember using your dom package a lot last year with much success.
On Sep 26, 2018, at 7:46 PM, Dominik Honnef ***@***.***> wrote:
It would seem there are some bugs. Patches welcome.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Lots of comments you will want to remove. And perhaps more special cases
than some would be comfortable with. Definitely there are decisions to make
regarding efficiency vs keeping the code easily read and understandable.
Did you mean to attach a patch with your latest message? Actually, I'm not sure GitHub lets you do that, unless it's attached inline. Alternately, send it to dominik@honnef.co
Activity
dominikh commentedon Sep 26, 2018
What makes you say the writer was never finished?
FrankReh commentedon Sep 26, 2018
dominikh commentedon Sep 26, 2018
It would seem there are some bugs. Patches welcome.
FrankReh commentedon Sep 26, 2018
dominikh commentedon Sep 27, 2018
Whichever you prefer, really.
FrankReh commentedon Sep 27, 2018
dominikh commentedon Sep 27, 2018
Did you mean to attach a patch with your latest message? Actually, I'm not sure GitHub lets you do that, unless it's attached inline. Alternately, send it to dominik@honnef.co