matryer / goblueprints

Source code for Go Programming Blueprints
1.49k stars 356 forks source link

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

Open idefixcert opened 5 years ago

idefixcert commented 5 years ago

https://github.com/matryer/goblueprints/blob/2541cc809517e87c950aaaf9958d886432f0960c/chapter6/api/main.go#L13

MaarooPL commented 3 years ago

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.