giredore/internal/configuration/exported.go
Stanislav N. aka pztrn 83a8694061
Server and client stubs.
Implemented HTTP server with configuration getting stub.

Implemented CLI client with configuration getting stub.
2019-10-05 21:53:22 +05:00

26 lines
431 B
Go

package configuration
import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
// other
"github.com/rs/zerolog"
)
var (
log zerolog.Logger
loggerInitialized bool
Cfg *config
)
func Initialize() {
log = logger.Logger.With().Str("type", "internal").Str("package", "configuration").Logger()
loggerInitialized = true
log.Info().Msg("Initializing...")
Cfg = &config{}
Cfg.Initialize()
}