todas as opções
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Fonte: golang-github-justinas-alice  ]

Pacote: golang-github-justinas-alice-dev (1.2.0-2)

Links para golang-github-justinas-alice-dev

Screenshot

Recursos de Debian:

Baixe o pacote-fonte golang-github-justinas-alice:

Mantenedores(as):

Fontes externas:

Pacotes similares:

Painless middleware chaining for Go

Alice provides a convenient way to chain HTTP middleware functions and the app handler.

It transforms:

  go Middleware1(Middleware2(Middleware3(App)))
to
  go alice.New(Middleware1, Middleware2, Middleware3).Then(App)

None of the other middleware chaining solutions behaves exactly like Alice. Alice is as minimal as it gets: in essence, it's just a for loop that does the wrapping for you.

Download de golang-github-justinas-alice-dev

Baixe para todas as arquiteturas disponíveis
Arquitetura Tamanho do pacote Tamanho instalado Arquivos
all 6.1 kB27.0 kB [lista de arquivos]