matryer/goblueprints

chapter 1 chat undefined: newRoom

nattaphat opened this issue · 2 comments

$ go run main.go

command-line-arguments

./main.go:34:7: undefined: newRoom

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

Thx @ksthiele,

it work now, sorry for my Go newbie.