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

Did I miss here something, or is there flag.Parse() missing? #66

Open
idefixcert opened this issue Sep 2, 2019 · 1 comment
Open

Did I miss here something, or is there flag.Parse() missing? #66

idefixcert opened this issue Sep 2, 2019 · 1 comment

Comments

@idefixcert
Copy link

addr = flag.String("addr", ":8080", "endpoint address")

@MaarooPL
Copy link

MaarooPL commented Feb 3, 2021

I had similar problem. Propably you try starting program at port "3000" with this commands ( this is commands of book ):
go build -o chat.exe
chat.exe -addr=":3000"
It's doesn't works. When you want use any port you should write this commands:
go build -o chat.exe
go run chat.exe -addr="3000"
Have a nice day.

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