Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCookie ¶
func DeleteCookie(w http.ResponseWriter, name string, getCookieOptions getCookieOptionsFunc)
func WriteCookie ¶
func WriteCookie(w http.ResponseWriter, name string, value string, maxAge int, getCookieOptions getCookieOptionsFunc)
Types ¶
type CookieOptions ¶
type CookieOptions struct { NotHttpOnly bool Path string Secure bool SameSiteDisabled bool SameSiteMode http.SameSite }
func NewCookieOptions ¶
func NewCookieOptions() CookieOptions
Click to show internal directories.
Click to hide internal directories.