88
99type 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