Package architecture

Go source generated by gos is distributed into separate packages. Each package has a functionality assigned to it. gos will generate 8 packages (9 in development mode) from your abstractions.

Program architecture

gos generates a program with your top level Go source code. This implies that sub level packages are reserved for code supporting program functionality. The top level source code is a program, with package main, using the generated Go packages to implement a web server.

Here is a diagram of the final program architecture :