// ToHandleFunc convert interface Handler to func for easy invoke
ToHandleFunc convert interface Handler to func for easy invoke
// ToHandleFunc convert interface Handler to func for easy invoke
func ToHandleFunc(handler Handler) HandleFunc {
	return func(ctx context.Context, evt Event) error {
		return handler.Handle(ctx, evt)
	}
}
func ToHandleFunc ( handler Handler ) HandleFunc { return func ( ctx context . Context , evt Event ) error { return handler . Handle ( ctx , evt ) } }
ToHandleFunc convert interface Handler to func for easy invoke
ToHandleFunc convert interface Handler to func for easy invoke