1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 04:22:22 +00:00

语法错误

This commit is contained in:
bcb51 2018-01-04 12:54:20 +08:00 committed by GitHub
parent 08c1314806
commit e955d503d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,13 +301,13 @@ func main() {
p.Publish("hello, golang!")
go func() {
for _, msg := all {
for msg := range all {
fmt.Println("all:", msg)
}
} ()
go func() {
for _, msg := golang {
for msg := range golang {
fmt.Println("golang:", msg)
}
} ()