Is there something like Nestjs Decorators?

Hello, i want something like this https://docs.nestjs.com/openapi/decorators
i want to use decorators like nestjs for Auth ect…
Is there any package?

In Go, the equivalent pattern would be to write a middleware function.

See https://www.alexedwards.net/blog/making-and-using-middleware

1 Like