我有這樣的并發(fā)例程,Routine 1(){for 30 timesSend string}Routine 2 (out <-chan string){forcase str := <- out: fmt.Println(str)}現(xiàn)在,我想從例程中發(fā)送1個(gè)字符串,例如,字符串+整數(shù)+字符串+系統(tǒng)時(shí)間(以納秒為單位)。有人可以幫助我如何實(shí)現(xiàn)這一目標(biāo)。
在Go中將int和long轉(zhuǎn)換為字符串
慕桂英4014372
2021-05-07 10:09:54