25 lines
679 B
Go
25 lines
679 B
Go
package main
|
|
|
|
import (
|
|
"iralex-einvoice/core"
|
|
"iralex-einvoice/server"
|
|
)
|
|
|
|
func main() {
|
|
// ------------------------------------------------------------------------
|
|
// App-level initializations.
|
|
//
|
|
// Note that initialization order is important, as each service will use
|
|
// services from previously initialized services.
|
|
|
|
core.SetUpLogging() // logging must be set up before all other services
|
|
core.SetUpEnvironmentVariables() // must be set up before cmd flags to provide them default values
|
|
core.SetUpCommandLineArguments()
|
|
core.SetUpCache()
|
|
|
|
// ------------------------------------------------------------------------
|
|
// Server main.
|
|
|
|
server.Run()
|
|
}
|