From b8ef70c656cd05d61bf672111153c8a620095cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20G=C3=B6kdemir?= Date: Sun, 27 Sep 2026 09:19:38 +0300 Subject: [PATCH] docs: explain unexported struct fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Efe Gökdemir --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 891b77ae..4a63bfe9 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ See [CHANGELOG.md](CHANGELOG.md) for full details and the [v6.0.0 release](https ## Features - Primitives, arrays, maps, structs, time.Time and interface{}. +- Struct fields that are not exported (their names start with a lowercase letter) are + ignored during encoding and decoding, just like `encoding/json`. - Appengine \*datastore.Key and datastore.Cursor. - [CustomEncoder]/[CustomDecoder] interfaces for custom encoding. - [Extensions](https://pkg.go.dev/github.com/Basekick-Labs/msgpack/v6#example-RegisterExt) to encode