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 new user find this information? The go documentation for the > API just tells me there is a Reader and a Seeker but not what might be > implementing the interface. I imagine this is difficult to generate since > there is no explicit keyword 'implements' but I also imagine it is > documented somewhere? > > Cheers > Peter > go1.12.1 >
Just check the definition:https://golang.org/pkg/io/#ReadSeeker Anything that implements a proper Read and Seek method, also implements the io.ReadSeeker interface. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/adbea23d-3150-4bed-a183-e8fcb8404d0c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.