I have concurrent routine like this,
Routine 1()
{
for 30 times
Send string
}
Routine 2 (out <-chan string)
{
for
case str := <- out:
fmt.Println(str)
}
Now, I want to send from routine 1 string like, string + int + string + system time in nanosecond. Can anybody help me how can I achieve this.
Sorry, I asked it too early. It is possible like this:
Thanks.
Update (Go1):
strconv.Itoa64has been replaced bystrconv.FormatInt.