Skip to content

Commit 1144ed3

Browse files
author
a.groshev
committed
start
1 parent c59da31 commit 1144ed3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

application/App.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
type Application struct {
1010
*Dependencies
11-
init map[string]func(name string, dep *Dependencies) (func(any) error, error)
12-
start map[string]func(any) error
11+
init map[string]func(name string, dep *Dependencies) (func(...any) error, error)
12+
start map[string]func(...any) error
1313
depLists [][]string
1414
depSeq []string
1515
}
@@ -25,14 +25,14 @@ func New() *Application {
2525
List: make(map[string]any),
2626
Cfg: NewConfiguration(),
2727
},
28-
init: make(map[string]func(name string, dep *Dependencies) (func(any) error, error)),
29-
start: make(map[string]func(any) error),
28+
init: make(map[string]func(name string, dep *Dependencies) (func(...any) error, error)),
29+
start: make(map[string]func(...any) error),
3030
depLists: [][]string{},
3131
depSeq: []string{},
3232
}
3333
}
3434

35-
func (s *Application) Init(name string, init func(name string, dep *Dependencies) (func(any) error, error), dependencies ...string) {
35+
func (s *Application) Init(name string, init func(name string, dep *Dependencies) (func(...any) error, error), dependencies ...string) {
3636
fmt.Printf("Registering depndency %s with dependencies %s\n", name, dependencies)
3737
s.init[name] = init
3838
if len(dependencies) != 0 {

0 commit comments

Comments
 (0)