ãã¼ãããã¼ãã¯ä¸¦è¡å¦çã®ãããã»ã¹ããçãã¦ãããã¨ãå¤ã«ä¼ããæ¹æ³ã¦ãããã¨æ¸ããã¦ãã¾ãã ããããã®1æã§ãã®ç« ã®ãã¨ãè¨ã£ã¦ãã¾ãããããªãªãããã®æ¬ã§ã¯2ãã¿ã¼ã³åå¨ããã¨ãã¦ãã¾ãã ä¸å®å¨æã¦ãçºçãããã¼ãããã¼ã ä»äºåä½ã®æåã«çºçãããã¼ãããã¼ã ä¸å®å¨æã¦ãçºçãããã¼ãããã¼ã ä¸å®å¨æã¦ãçºçãããã¼ãããã¼ãã¯ã©ã¤ãã¿ã¤ã ãé·ãgorutineãçãã¦ããããä»ã®é¢æ°ã«ä¼ããæ¹æ³ã¨ãªãã¾ãã package main import ( "fmt" "time" ) func sendPulse(heartbeat chan<- interface{}) { select { case heartbeat <- struct{}{}: default: // 誰ããã¼ãããã¼ãã確èªãã¦ããªãå¯è½æ§ãããã®ã§defaultç¯ã¯å¿
é } } func send
{{#tags}}- {{label}}
{{/tags}}