Completed

add goroutine code in golang

I want to add code so that goroutine is terminated reliably.

Please fix the code

var {

switch bool = true

)

func httpGet(Url string, interval int) {

for switch {

go func(Target string, interval int) {

defer func() {

if err := recover(); err != nil {

[login to view URL](err)

}

}()

req, err := [login to view URL]("GET", Url, nil)

if err != nil {

return

}

resp, err := [login to view URL](req)

if err != nil {

defer [login to view URL]()

return

}

bs, _ := [login to view URL]([login to view URL])

[login to view URL](string(bs))

defer [login to view URL]()

}(Url, interval)

[login to view URL]([login to view URL](1000) * [login to view URL])

}

}

main func() {

for i := 0; i < 5; i++ {

go httpGet(Url, interval)

}

}

Skills: C Programming, C++ Programming, Golang

See more: aspnet updatepanel add trigger code, add coupon code paypal, send add friends code myspace, golang channels, golang concurrency, golang make, go routine channel, golang waitgroup, go playground, goroutine return value, golang defer, possible add promotion code paypal, protx add basket code, add keywords code website, add tracking code, add coupon code pay pal, add promo code paypal, examples add tracking code website, add product code php, paypal add coupon code

About the Employer:
( 18 reviews ) Pyeongtaeksi Gyeonggi-do, Korea, Republic of

Project ID: #17596061

Awarded to:

VanillaApps

Hi. I am a fullstack developer with vast experience in Golang, Python, Java and Javascript stacks. I will fix the problem of termination in your Golang routine. I hope to hear from you soon. Regards.

$20 USD in 1 day
(1 Review)
0.0
profvipabutaleb

I'm computer engineering TA with 12+ years of experience I experienced with golang and developed many programs using golang like mapReduce like twitter scrapping and ipspoofing using golang. I'm also experienced wit More

$20 USD in 10 days
(40 Reviews)
4.5

3 freelancers are bidding on average $20 for this job

$20 USD in 10 days
(0 Reviews)
0.0