chapter 1 chat undefined: newRoom
nattaphat opened this issue · 2 comments
nattaphat commented
$ go run main.go
command-line-arguments
./main.go:34:7: undefined: newRoom
ksthiele commented
You have to build it with go build -o chat
(page 15)
I suppose you ran it with go run main.go
this will only run main.go an thus not include room.go I think
you could also go run main.go room.go client.go
but this would get out of hand for larger projects