From e83cdcc9e463ec5d582123e34ecb602a3b46c6c5 Mon Sep 17 00:00:00 2001 From: 1911860538 Date: Sat, 23 May 2026 22:47:06 +0800 Subject: [PATCH] docs: document ShouldBindBodyWithProtoBuf shortcut --- docs/doc.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/doc.md b/docs/doc.md index d1c33b87..addfaef9 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -1576,6 +1576,7 @@ For this, you can use `c.ShouldBindBodyWith` or shortcuts. - `c.ShouldBindBodyWithXML` is a shortcut for c.ShouldBindBodyWith(obj, binding.XML). - `c.ShouldBindBodyWithYAML` is a shortcut for c.ShouldBindBodyWith(obj, binding.YAML). - `c.ShouldBindBodyWithTOML` is a shortcut for c.ShouldBindBodyWith(obj, binding.TOML). +- `c.ShouldBindBodyWithProtoBuf` is a shortcut for c.ShouldBindBodyWith(obj, binding.ProtoBuf). ```go func SomeHandler(c *gin.Context) {