Ejemplo n.º 1
0
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
}
Ejemplo n.º 2
0
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
}