Hacker News new | past | comments | ask | show | jobs | submit login

mux is probably the most popular routing library: http://www.gorillatoolkit.org/pkg/mux

As far as application structure, I'm not really sure what you mean. Go projects are divided into packages which can be any number of files. At some point you'll have a main package which has a main() function which gets called to start your server. It's similar to C, for example.

That said, the variety can also be a plus. Some people chose to use something like Martini that does dependency injection. Others think that's not a great idea.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: