[go-nuts] Re: I'm writing my website in golang but there is issue called 404 page not found

2020-03-09 Thread Amnon Baron Cohen
Also worth adding some unit tests, including one which reproduces your 404 error. See https://www.youtube.com/watch?v=hVFEV-ieeew for a great video about how to add these tests. On Monday, 9 March 2020 14:53:20 UTC, anderso...@blacklane.com wrote: > > please post the code as text. Either in a

[go-nuts] Re: I'm writing my website in golang but there is issue called 404 page not found

2020-03-09 Thread anderson . queiroz
please post the code as text. Either in a github/whatever repo or here, but please, as text and a runnable code. I don't see you registering any handler for */register.html*, you have one for */register* only. Also if the method is not POST, you should return *405 Method Not Allowed *instead of

[go-nuts] Re: I'm writing my website in golang but there is issue called 404 page not found

2020-03-08 Thread leszek . kubik
Hello, It would be much clearer if you posted a complete sample of a Go code. Which framework are you using for the server? I guess it could be something with the server config, can it accept POST methods? Did you test the server first, independently of your frontend, by using curl or PostMan?

[go-nuts] Re: I'm writing my website in golang but there is issue called 404 page not found

2020-03-08 Thread Brian Candler
Well, I can't see your problem immediately, but you've not made it easy for anyone to help you. Am I going to retype your screen images to replicate the problem? No. Am I going to write a main() function which wraps your code, and then work out what all the import statements need to be to make