Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 455 Bytes
package main
import (
"github.com/eqlabs/sprawl/app"
"github.com/eqlabs/sprawl/config"
"go.uber.org/zap"
)
var appConfig *config.Config
var logger *zap.Logger
var log *zap.SugaredLogger
var configPath = "./config/default"
func init() {
logger, _ = zap.NewProduction()
log = logger.Sugar()
appConfig = &config.Config{Logger: log}
appConfig.ReadConfig(configPath)
}
func main() {
app := &app.App{}
app.InitServices(appConfig, log)
app.Run()
}
You can’t perform that action at this time.