func sendData(sendCh chan string) {
	var data string
	counter := 1
	for c := time.Tick(time.Duration(sendSpeedSeconds) * time.Second); ; <-c {
		fmt.Printf("%4d - START SENDING DATA\n", counter)
		data = strconv.Itoa(counter)
		sendCh <- data
		fmt.Printf("%4d - Sent data %v\n", counter, data)
		counter++
	}
}
sendData - Sends data every X seconds
package main
import (
	"fmt"
	"strconv"
	"time"
)
const sendSpeedSeconds = 5
const rcvSpeedSeconds = 2