diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-30 15:20:25 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-30 15:20:25 -0600 |
| commit | 0a3bbc641efda807af3e54e7f37b562def35e729 (patch) | |
| tree | 431e3385e2101b844d9190b8d219f1ff7117ead4 /pkg/web/cookie/expire.go | |
| parent | 2ed3cc0a1a05c32fb7ecc32b02f3245c078b4baf (diff) | |
test: add test for each cookie option
Diffstat (limited to 'pkg/web/cookie/expire.go')
| -rw-r--r-- | pkg/web/cookie/expire.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/web/cookie/expire.go b/pkg/web/cookie/expire.go new file mode 100644 index 0000000..b44fc38 --- /dev/null +++ b/pkg/web/cookie/expire.go @@ -0,0 +1,7 @@ +package cookie + +import "net/http" + +func Expire(w http.ResponseWriter, name string) { + http.SetCookie(w, Reset(name)) +} |
