func HttpGet()

in services/OrderService/main.go [14:25]


func HttpGet(url string, c chan<- string) {
	resp, err := http.Get(url)
	if err != nil {
		c <- "error"
		log.Println(err)
	} else {
		defer resp.Body.Close()
		body, _ := ioutil.ReadAll(resp.Body)
		c <- string(body)
	}

}