823901b8ab
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
8 lignes
163 o
Go
8 lignes
163 o
Go
package config
|
|
|
|
// Constants for environment.
|
|
const (
|
|
// DEVELOPMENT | TEST | PRODUCTION
|
|
Environment = "DEVELOPMENT"
|
|
// Environment = "PRODUCTION"
|
|
)
|