Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cookie.md to add doc for deleting cookie #221

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion content/en/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Set and get a cookie"
title: "Cookie"
draft: false
---

Set and get cookie.

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/es/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Crear y obtener una cookie"
title: "Cookie"
draft: false
---

Crear y obtener una cookie

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/fa/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Set and get a cookie"
title: "Cookie"
draft: false
---

Set and get cookie.

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/ja/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "cookieの設定と取得"
title: "Cookie"
draft: false
---

cookieの設定と取得

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/ko-kr/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "쿠키의 설정 및 가져오기"
title: "Cookie"
draft: false
---

쿠키의 설정 및 가져오기

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/pt/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Set and get a cookie"
title: "Cookie"
draft: false
---

Set and get cookie.

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/tr/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Set and get a cookie"
title: "Cookie"
draft: false
---

Set and get cookie.

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/zh-cn/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "设置和获取 Cookie"
title: "Cookie"
draft: false
---

设置和获取 Cookie

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

删除cookie: 通过设置max age的值为-1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```
10 changes: 9 additions & 1 deletion content/zh-tw/docs/examples/cookie.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Set and get a cookie"
title: "Cookie"
draft: false
---

Set and get cookie.

```go
import (
"fmt"
Expand All @@ -29,3 +31,9 @@ func main() {
router.Run()
}
```

Delete cookie by set max age to -1.

```go
c.SetCookie("gin_cookie", "test", -1, "/", "localhost", false, true)
```