Merge pull request #811 from PPACI/patch-1

more example in example

Former-commit-id: e83351ac01e0a254d12e2df9a37fb9a40aba6c4f
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-11-18 09:52:04 +02:00 committed by GitHub
commit f4b4742eca

View File

@ -77,7 +77,7 @@ func main() {
go func() {
i := 0
for {
for range time.Tick(1*time.Second){ //another way to get clock signal
mutex.Lock()
broadcast(Conn, fmt.Sprintf("aaaa2 %d\n", i))
mutex.Unlock()