Saturday, March 18, 2023
HomeGolangJust how to gather worths from a network right into a piece...

Just how to gather worths from a network right into a piece in Go? (I desire an energy technique, perhaps from go-funk) – Obtaining Assistance


Does go-funk have anything to gather worths from a network right into a piece in Go? Any kind of collection that has?

I do not wish to apply this myself-


Why do you not wish to apply this on your own? It appears you might simply do this:

 func readEverythingFromChannel( ch chan * Something) [] * Something {
somethings:= make([] * Something).
for s:= variety ch {
somethings = append( somethings, s).
}
return somethings.
}

Hi @skillian

why create 7 even more lines right into a documents, each time you require to address the very same issue? Exists a collection that currently does this?

RELATED ARTICLES

Most Popular

Recent Comments