Files
inventory-plus-plus/internal/site/cookies/expired.go
T

12 lines
168 B
Go

package cookies
import "net/http"
func Expired(name string) http.Cookie {
return http.Cookie{
Name: name,
Path: "/",
MaxAge: -1, // expire the cookie
}
}