Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct { // Name is the name of the cookie. Name string // Path is path of the cookie. Path string // MaxAge is the max age of the cookie. MaxAge time.Duration // HTTPOnly restricts the cookie to HTTP (no javascript access). HTTPOnly bool }
Cookie is a description of a cookie used for consistent cookie setting and deleting.
func (*Cookie) Get ¶
Get decodes the cookie into the value. Returns false if the cookie is not there.
Click to show internal directories.
Click to hide internal directories.