package
Version:
v6.5.4+incompatible
Opens a new window with list of versions in this module.
Published: Apr 16, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
NewContext returns a new Context that carries value u.
type User struct {
ID string
}
User is the type of value stored in the Contexts.
FromContext returns the User value stored in context. If there
is no user in the context, this function will crash
Source Files
¶
Click to show internal directories.
Click to hide internal directories.