Dmitri Shuralyov
Dmitri Shuralyov
Consider adding a Bytes []byte method to File (or documenting an example of how it can be achieved).
Having typed this up and considering it more closely, I no longer think this is a good fit and therefore shouldn't be done. But I posted it anyway for posterity...
Consider adding a Bytes []byte method to File (or documenting an example of how it can be achieved).
Agreed, the code doesn't belong in the `dom` package. If there's another package that implements this `File` -> `[]byte` functionality, I think pointing to it would be very helpful to...
Consider adding a Bytes []byte method to File (or documenting an example of how it can be achieved).
> it may easily trick people into believing that this is the canonical way of doing things I see the danger of that, but I still think that having an...
From looking at the API of this library, it appears it does not currently have support for `execCommand`. If your question is "how would the equivalent of document.execCommand() be achieved...
Thanks @udhos, that sounds like the right solution. We can add an `ExecCommand` method that uses such an implementation. Whoever is interested in getting this added to `dom` can send...
This came up in the past as: - https://github.com/dustin/go-humanize/issues/52 - https://github.com/dustin/go-humanize/issues/48 - https://github.com/dustin/go-humanize/issues/24
When you execute `spew.Sdump(this)` in the `A.String` method, spew runs, sees that the type `A` implements the `fmt.Stringer` interface, and calls `String`, which in turn calls spew again. So it...
I think an interesting idea would be to use the browser for dump output rather than stdout. Then, together with some logic in the frontend, you could dynamically show less...
You should used fenced code blocks for code, that way it's easier to read (indentation preserved, mono font, optional highlighting, and content won't get misinterpreted as other markup). https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks
Hi @glycerine, I'm glad you found some of my work useful! I found out about this repo via https://github.com/avelino/awesome-go/pull/353, but I am not using it at this time.