package
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: Mar 31, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Middleware to set time.Time which is the time when is called this handler.
This function is intended to be used within an application.
Now returns time.Time when requested. if time.Time does not exist in context
this function cause panic.
Use this function with Middleware function. In other words, this
function is intended to be used within an application.
WithTime returns a copy of parent in which the value associated with time.Time is
val.
Use context Values only for request-scoped data that transits processes and
APIs, not for passing optional parameters to functions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.