I tried to use the gopages example, but it seems it is not working with me. I have reached the part where you run gopages in your terminal and I received this message "generated 2 gopages", I assumed this is correct. But, by proceeding to the next step, which was to run ./main, nothing seems working, as this command didn't work, so I replace it with ./main.go and I have received many errors and that means that the file can't be executed. I can't definetly view anything on http://localhost:9999, since the ./main fail .. can you please get back to me asap ..
maybe u should try to run it with "gopages -run". that will automatically run the resulting executable. if it still fails, try mailing me with the contents on your main.go file.
Dear Abiola,
ReplyDeleteI tried to use the gopages example, but it seems it is not working with me. I have reached the part where you run gopages in your terminal and I received this message "generated 2 gopages", I assumed this is correct. But, by proceeding to the next step, which was to run ./main, nothing seems working, as this command didn't work, so I replace it with ./main.go and I have received many errors and that means that the file can't be executed. I can't definetly view anything on http://localhost:9999, since the ./main fail .. can you please get back to me asap ..
I will be waiting for your kind reply ..
maybe u should try to run it with "gopages -run". that will automatically run the resulting executable. if it still fails, try mailing me with the contents on your main.go file.
ReplyDeleteThanks.
> I'm used to php way of coding web pages where you embed your codes in tags.
ReplyDelete90% wrong way to go (and who told you it is realy php-way?)
this is nice for web1.0, but it is just too bad in web2.0 (it makes code too complex: if model and view are separated - it's better for you)
see MVC and php frameworks such as cake, symphony etc