0

Can someone help me out pls GOlang

package main import "fmt" //define the download() function func main() { ch1 := make(chan int) ch2 := make(chan int) ch3 := make(chan int) var s1, s2, s3 int fmt.Scanln(&s1) fmt.Scanln(&s2) fmt.Scanln(&s3) go download(s1, ch1) go download(s2, ch2) go download(s3, ch3) //output the sum of all results fmt.println(s1+s2+s3) } The protect downloader

15th Aug 2021, 6:15 PM
Ejeh Wayne
Ejeh Wayne - avatar
2 ответов
+ 5
Ejeh Wayne , you need to write the download function and put all together. if you have done this, please put your code to playground and link it here. thank you very much!
15th Aug 2021, 7:18 PM
Lothar
Lothar - avatar
0
Lothar u can put it in play ground and link it here
15th Aug 2021, 7:21 PM
Ejeh Wayne
Ejeh Wayne - avatar