mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-16 21:20:44 +08:00
15 lines
175 B
Go
15 lines
175 B
Go
package server
|
|
|
|
import (
|
|
"testing"
|
|
"fmt"
|
|
)
|
|
|
|
func TestGo1(t *testing.T) {
|
|
ch := make(chan struct{},1000)
|
|
ch<-struct{}{}
|
|
fmt.Println(len(ch))
|
|
<-ch
|
|
fmt.Println(len(ch))
|
|
}
|