Directory Structure
[[toc]]
Introduction
The default file structure can make you better start project advancement, and you can also add new folders freely, but do not modify the default folders.
Root Directory
app
Directory
app
Directoryapp
contains the core code of the program. Almost all the logic in the program will be in this folder.
bootstrap
Directory
bootstrap
DirectoryThe bootstrap
directory contains the framework startup file app.go
.
config
Directory
config
DirectoryThe config
directory contains all configuration files of the application. It is best to browse through these files and familiarize yourself with all the available options.
database
Directory
database
DirectoryThe database
directory contains database migration files.
public
Directory
public
DirectoryThe public
directory contains some static resources, such as images, certificates, etc.
routes
Directory
routes
DirectoryThe routes
directory contains all the route definitions of the application.
storage
Directory
storage
DirectoryThe storage
directory contains the logs
directory, and the logs
directory contains the application log files.
app
Directory
app
Directoryconsole
Directory
console
Directoryhttp
Directory
http
DirectoryThe http
directory contains controllers, middleware, etc., and almost all requests that enter the application via the Web are processed here.
grpc
Directory
grpc
DirectoryThe grpc
directory contains controllers, middleware, etc., and almost all requests that enter the application via the Grpc are processed here.
models
Directory
models
DirectoryThe models
directory contains all data models.
providers
Directory
providers
DirectoryLast updated