Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter 1 chat undefined: newRoom #58

Open
nattaphat opened this issue Dec 4, 2017 · 2 comments
Open

chapter 1 chat undefined: newRoom #58

nattaphat opened this issue Dec 4, 2017 · 2 comments

Comments

@nattaphat
Copy link

$ go run main.go

command-line-arguments

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

@ksthiele
Copy link

ksthiele commented Dec 5, 2017

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

@nattaphat
Copy link
Author

Thx @ksthiele,

it work now, sorry for my Go newbie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants