fixes readme typo
This commit is contained in:
parent
0123e90f9c
commit
a0a0134367
@ -11,7 +11,7 @@ Just a simple zerolog based request logging http middleware. It also sets a `X-R
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
handler := logginghandler.Handler(http.HandlerFunc(myHandler))
|
handler := logginghandler.Handler(http.HandlerFunc(myHandler))
|
||||||
http.HandleFunc("/", handler)
|
http.Handle("/", handler)
|
||||||
log.Fatal().Msg(http.ListenAndServe(":5000", nil).Error())
|
log.Fatal().Msg(http.ListenAndServe(":5000", nil).Error())
|
||||||
|
|
||||||
In other handlers you can access the UUID:
|
In other handlers you can access the UUID:
|
||||||
|
Loading…
Reference in New Issue
Block a user