Hi,
I have a Go workspace with multiple GAE services inside.
src/
pkgA/
main.go
app.yaml
pkgB/
main.go
app.yaml
Both pkgA and pkgB are services, which means that they both some handlers registered in init() (I use gorilla/mux, if it matters). Also, since I have some of the model structs defined in pkgA, pkgB imports pkgA.
When I try to start pkgB, I get "panic: http: multiple registrations for /". I suppose this is because of importing the pkgA. Is there a way to overcome this? Or should I move common classes to separate packages?
Thanks,
Mateusz