aah init.go file
Since v0.10 aah framework brought init.go
file to evolves aah towards next step.
Best Practice: Define your implementations in an appropriate package and register it in init.go
. It adds more flexibility, organized and maintainable aah application. Its located at <app-base-dir>/app/init.go
.
Register your -
- Server Extensions
- Middleware’s
- View engines
- etc.
For example, have a look at aah website init.go file.