I'm following the Bookshelf tutorial on building web services on Google App Engine.
To start the app the tutorial runs go run app.go auth.go template.go
. I don't understand how this works. For example, how is the parseTemplate method from template.go used in app.go without an import statement for template.go
?
My understanding is that in a Go project we have an entry point file that has a main method. That file then imports packages to use them internally. What is the advantage of running these three files at once?