9586f1e731
Configurations are separated in files in the folder config Connection to database by a package to import when needed Models will be in a model package for better maintenance Services access to the models Utils are tools or functions that can be used anywhere main.go cleaned a bit and other files modifications are there for the above modifications
7 lignes
113 o
Go
7 lignes
113 o
Go
package config
|
|
|
|
// Constants for ordering models.
|
|
const (
|
|
TorrentOrder = "torrent_id"
|
|
TorrentSort = "DESC"
|
|
)
|