Writing “social network“ in go lang, part 9, refactoring protocol

I decided to try to write a “social network“, like facebook, vkontakte and such, for fun, in go lang ( ). In the this part we refactor our protocol implementation so that it does not require to do copy-paste anymore. It also helps to have all handlers in one place instead of logic being scattered throughout the main file. All source code (including which uses darwin-notify from my unrealsync project) is available at github: Live demo is available at
Back to Top