I want to search in all library (which have source code) Maybe i don't understand the concept of Golang (I have delphi,c++,c background)
for exmaple : I see this. This function need an interface type : r func NewScanner(r io <https://golang.org/pkg/io/>.Reader <https://golang.org/pkg/io/#Reader>) *Scanner <https://golang.org/pkg/bufio/#Scanner> But which type satisfy this r parameter ? (Of course if i use google i find a sample for all my problem, but i don't want to be a Googler, i want to be a programmer in Go.) c++ : *int* *FileRead*(*int* *Handle*, char* *Buffer*, LongWord *Count*); It is easy because every parameter has a concrete type, but in golang a lot of type can satisfy an interface type. The lack of interface keyword bother me. (or i don't understand the concept of go) I think it is not as easy programming language as others say. Thank you Attila 2018. április 28., szombat 8:08:23 UTC+2 időpontban Jan Mercl a következőt írta: > > The answer depends on the scope you want to search. Which scope you want > to search? > > Also, please share what purpose does that information serve. I cannot > imagine a one. > > On Sat, Apr 28, 2018, 07:06 <k1at...@gmail.com <javascript:>> wrote: > >> Hi >> >> How can i get a list of types which implement a particular interface ? ( >> for exmaple io.Reader) >> >> Thank you in advance >> Attila >> >> -- >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- > > -j > -- 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. For more options, visit https://groups.google.com/d/optout.