Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextGetUser ¶
ContextSetUser retrieves the User struct from the request context. The only time that we'll use this helper is when we logically expect there to be User struct value in the context, and if it doesn't exist it will firmly be an 'unexpected' error. As we discussed earlier in the book, it's OK to panic in those circumstances.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.