simple example for channelAPI written by Golang