Godeps: Bump go-systemd, add coreos/pkg/dlopen.

This commit is contained in:
Yifan Gu
2016-06-03 03:52:00 +00:00
parent 3699b70b00
commit a16f015a18
17 changed files with 1321 additions and 67 deletions

21
vendor/github.com/coreos/pkg/httputil/cookie.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
package httputil
import (
"net/http"
"time"
)
// DeleteCookies effectively deletes all named cookies
// by wiping all data and setting to expire immediately.
func DeleteCookies(w http.ResponseWriter, cookieNames ...string) {
for _, n := range cookieNames {
c := &http.Cookie{
Name: n,
Value: "",
Path: "/",
MaxAge: -1,
Expires: time.Time{},
}
http.SetCookie(w, c)
}
}