Closed
Description
See below
package main
type (
client struct {
message chan string
}
clientList struct {
m (map[string]*client)
}
)
func main() {
clientList := clientList{m: make(map[string]*client)}
message := ""
for _, c := range clientList.m {
c.message <- message // c.message is not resolved.
}
}
Original issue:
http://pastebin.com/XBiNkfSN - little chat server i've been working on. For the function broadcastLoop inside of manageChannel it says on line 201 that message is unresolved. Everything compiles and runs and the function works as expected. Don't know what's wrong.
Latest nightly build btw.