godoc _is_ the tool serving golang.org (Although now it's split into 2).
You just need to enable that flag to get the results you want. Enabling it
by default in golang.org is https://github.com/golang/go/issues/11251. Feel
free to subscribe to that.
On Thursday, 16 May 2019 10:15:56 UTC+2, Whi
The magical Go phrase is "implicitly implements." What you want is to make
that explicit in the documentation.
On Thu, May 16, 2019 at 1:16 AM 'White Hexagon' via golang-nuts <
golang-nuts@googlegroups.com> wrote:
> Thanks. Tools are fine, but a new developer has to know about them. So I
> think
Thanks. Tools are fine, but a new developer has to know about them. So I
think it would still be super useful if golang.org documentation had this
information already generated. In bytes.Reader I should be able to see
'Implements ReadSeeker etc', and in ReadSeeker I should be able to see
'Imp
You can see the documentation by enabling type analysis in godoc.
See https://golang.org/lib/godoc/analysis/help.html. Also
see https://github.com/golang/go/issues/20131
On Wednesday, 15 May 2019 22:28:46 UTC+2, White Hexagon wrote:
>
> bytes.Reader is what I was looking for, thanks all!
>
> See
bytes.Reader is what I was looking for, thanks all!
Seems like if it this information can be generated, then it should probably
be included in the main documentation? I don't know how anyone new to the
language would ever work that out otherwise.
I have vscode 1.33, which support guru (using
To summarize, there are three main concrete types in the standard
library that provide ReadSeeker functionality:
*os.File
*bytes.Reader
*strings.Reader
On Wed, May 15, 2019 at 12:33 PM Sam Mortimer wrote:
>
> There is guru
> (https://docs.google.com/document/d/1_Y9xCEMj5S-7rv2ooHpZNH15JgRT5iM74
There is guru (
https://docs.google.com/document/d/1_Y9xCEMj5S-7rv2ooHpZNH15JgRT5iM742gJkw5LtmQ/edit)
but it's intended for editors not humans. I suppose that means perhaps
you could use one of the editors that uses guru ?
Regards,
-Sam.
src/io/io.go:#5381 is where io.ReadSeeker is defined:
2019. május 15., szerda 16:56:17 UTC+2 időpontban White Hexagon a
következőt írta:
>
> I have another strange interface with the Go AWS SDK. The PutObject is
> expecting the data as an: io.ReadSeeker
>
> I imagine there is something implementing this in Go. But my question is
> how would a ne