Golang free the data in the channel

 Golang free the data in the channel

/* memList is channel */
func freeMemory() {
	for len(memList) > 0 {
		<-memList
	}
}

Comments

Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example