package
0.0.0-20241212173216-745cb4b42230
Repository: https://github.com/ibiscum/go-programming-cookbook-second-edition.git
Documentation: pkg.go.dev

# Functions

ApplyMiddleware will apply all middleware, the last arguments will be the outer wrap for context passing purposes.
GetID grabs an ID from a context if set otherwise it returns an empty string.
Handler is very basic.
Logger logs requests, this will use an id passed in via SetID().
SetID updates context with the id then increments it.

# Constants

ID is the only ID we've defined.

# Type aliases

ContextID is our type to retrieve our context objects.
Middleware is what all middleware functions will return.