func (gapp *GoatApp) initArgsScope() error { gapp.argsScope = scope.Scope{ EventScope: scope.NewEventScope(), DataScope: scope.NewDataScope(map[string]interface{}{}), Injector: args.NewInjector(app.ArgsTagName), } return nil }
func (gapp *GoatApp) initEngineScope() error { gapp.argsScope = scope.Scope{ EventScope: scope.NewEventScope(), DataScope: scope.NewDataScope(map[string]interface{}{}), Injector: args.NewInjector(app.EngineTagName), } gapp.engineScope.Set(app.GoatVersion, app.GoatVersionValue) return nil }