I have the following:
app/main.go
app/server/server.go
app/server/templates.go
main.go
has an import statement of import "app/server"
, but when compiled, it complains about:
found packages server (server.go) and templates (templates.go) in app/server
Im guessing it is confused about which package to load up? My intention is that server.go
will setup the routes and import ./templates.go
to render templates.
Is there a better way to layout files? Should I move templates.go
to it's own directory?