//
pkg.gl
Category
github.com/packtpublishing/go-cookbook
Chapter06
decorator
package
0.0.0-20230130100827-6c64ebff31b2
Repository:
https://github.com/packtpublishing/go-cookbook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
0
Files
64 SLOC
#
Packages
example
No description provided by the author
#
Functions
BasicAuth
BasicAuth is another of our 'middleware' decorators.
Decorate
Decorate is a helper to wrap all the middleware.
Exec
Exec creates a client, calls google.com then prints the response.
Logger
Logger is one of our 'middleware' decorators.
Setup
Setup initializes our ClientInterface.
#
Type aliases
Decorator
Decorator is a convenience function to represent our middleware inner function.
TransportFunc
TransportFunc implements the RountTripper interface.