This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git


The following commit(s) were added to refs/heads/main by this push:
     new bb03de74a 🔄 synced local 'docs/docs/guide/' with remote 'docs/guide/'
bb03de74a is described below

commit bb03de74a120d1cc91fe29f5628821ad763df4f1
Author: chaokunyang <[email protected]>
AuthorDate: Mon Jan 12 08:30:29 2026 +0000

    🔄 synced local 'docs/docs/guide/' with remote 'docs/guide/'
---
 docs/docs/guide/xlang/serialization.md | 18 +++++++++---------
 docs/docs/guide/xlang/zero-copy.md     |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/docs/docs/guide/xlang/serialization.md 
b/docs/docs/guide/xlang/serialization.md
index fa8d1cc3b..a8d1c1b96 100644
--- a/docs/docs/guide/xlang/serialization.md
+++ b/docs/docs/guide/xlang/serialization.md
@@ -79,19 +79,19 @@ import forygo "github.com/apache/fory/go/fory"
 import "fmt"
 
 func main() {
-  list := []interface{}{true, false, "str", -1.1, 1, make([]int32, 10), 
make([]float64, 20)}
+  list := []any{true, false, "str", -1.1, 1, make([]int32, 10), 
make([]float64, 20)}
   fory := forygo.NewFory()
   bytes, err := fory.Marshal(list)
   if err != nil {
     panic(err)
   }
-  var newValue interface{}
+  var newValue any
   // bytes can be deserialized by other languages
   if err := fory.Unmarshal(bytes, &newValue); err != nil {
     panic(err)
   }
   fmt.Println(newValue)
-  dict := map[string]interface{}{
+  dict := map[string]any{
     "k1": "v1",
     "k2": list,
     "k3": -1,
@@ -271,9 +271,9 @@ import "fmt"
 
 func main() {
   type SomeClass1 struct {
-    F1  interface{}
+    F1  any
     F2  string
-    F3  []interface{}
+    F3  []any
     F4  map[int8]int32
     F5  int8
     F6  int16
@@ -286,7 +286,7 @@ func main() {
   }
 
   type SomeClass2 struct {
-    F1 interface{}
+    F1 any
     F2 map[int8]int32
   }
   fory := forygo.NewFory()
@@ -302,7 +302,7 @@ func main() {
   obj := &SomeClass1{}
   obj.F1 = obj1
   obj.F2 = "abc"
-  obj.F3 = []interface{}{"abc", "abc"}
+  obj.F3 = []any{"abc", "abc"}
   f4 := map[int8]int32{1: 2}
   obj.F4 = f4
   obj.F5 = fory.MaxInt8
@@ -317,7 +317,7 @@ func main() {
   if err != nil {
     panic(err)
   }
-  var newValue interface{}
+  var newValue any
   // bytes can be deserialized by other languages
   if err := fory.Unmarshal(bytes, &newValue); err != nil {
     panic(err)
@@ -493,7 +493,7 @@ func main() {
   if err != nil {
     panic(err)
   }
-  var newValue interface{}
+  var newValue any
   // bytes can be deserialized by other languages
   if err := fory.Unmarshal(bytes, &newValue); err != nil {
     panic(err)
diff --git a/docs/docs/guide/xlang/zero-copy.md 
b/docs/docs/guide/xlang/zero-copy.md
index 18e5b736a..de73a3d06 100644
--- a/docs/docs/guide/xlang/zero-copy.md
+++ b/docs/docs/guide/xlang/zero-copy.md
@@ -118,7 +118,7 @@ func main() {
   fory := forygo.NewFory()
 
   // Data with large arrays
-  list := []interface{}{
+  list := []any{
     "str",
     make([]byte, 1000), // Large byte array
   }
@@ -139,7 +139,7 @@ func main() {
   }
 
   // Deserialize with buffers
-  var newList []interface{}
+  var newList []any
   if err := fory.Deserialize(buf, &newList, buffers); err != nil {
     panic(err)
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to