Combine New/Setup functions
This commit is contained in:
committed by
=Michael Hohn
parent
f611f02d1c
commit
cd0647836e
@@ -4,13 +4,11 @@ type LoggerSingle struct {
|
||||
modules *Visibles
|
||||
}
|
||||
|
||||
func NewLoggerSingle() *LoggerSingle {
|
||||
func NewLoggerSingle(v *Visibles) *LoggerSingle {
|
||||
l := LoggerSingle{}
|
||||
|
||||
l.modules = v
|
||||
return &l
|
||||
}
|
||||
|
||||
type Visibles struct{}
|
||||
|
||||
func (l *LoggerSingle) Setup(v *Visibles) {
|
||||
l.modules = v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user