Stanislav N. aka pztrn
83a8694061
Implemented HTTP server with configuration getting stub. Implemented CLI client with configuration getting stub.
26 lines
431 B
Go
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()
|
|
}
|