cookies.go
func (c *Cookies) Set(name, value string, maxAge time.Duration) {
	ck := http.Cookie{
		Name:   name,
		Value:  value,
		MaxAge: int(maxAge.Seconds()),
	}

	http.SetCookie(c.res, &ck)
}
func (c *Cookies) Set(name, value string, maxAge time.Duration) {
	ck := http.Cookie{
		Name:   name,
		Value:  value,
		MaxAge: int(maxAge.Seconds()),
	}

	http.SetCookie(c.res, &ck)
}
func ( c * Cookies ) Set ( name , value string , maxAge time . Duration ) { ck := http . Cookie { Name : name , Value : value , MaxAge : int ( maxAge . Seconds ( ) ) , } http . SetCookie ( c . res , & ck ) }
// Set a cookie on the response, which will expire after the given duration.
Set a cookie on the response which will expire after the given duration .