Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (13 loc) · 546 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 546 Bytes

middlechain

CI Go Reference

The simple HTTP middleware chainer for Golang.

How to use

mux := http.NewServeMux()

handler := middlechain.Chain(mux,
  someMiddleware,
)

// handle http request...

http.ListenAndServe(":8080", handler)