Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> devel >> golang-github-justinas-alice-dev
nabia  ] [  aramo  ]
[ 源代码: golang-github-justinas-alice  ]

软件包: golang-github-justinas-alice-dev (1.2.0-2)

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.

下载 golang-github-justinas-alice-dev

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 6.2 kB27 kB [文件列表]