Ben, thanks, this is definitely a better way to layout your project.
Pieter Louw
1
Good point. That is confusing. The http package wouldn’t necessarily implement domain interfaces but it would consume them. One exception would be if you wanted to implement an http.UserService which would act as a client to a remote HTTP server.
As far as using http from main, you’d need to export a ListenAndServe() function from your http package or implement a Server that handles the opening and closing of the socket.