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 544dfa1c1 🔄 synced local 'docs/guide/' with remote 'docs/guide/'
544dfa1c1 is described below

commit 544dfa1c1081d5e3ce7b6b0885e626f7706e83c9
Author: chaokunyang <[email protected]>
AuthorDate: Thu Oct 9 17:09:42 2025 +0000

    🔄 synced local 'docs/guide/' with remote 'docs/guide/'
---
 docs/guide/xlang_serialization_guide.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/guide/xlang_serialization_guide.md 
b/docs/guide/xlang_serialization_guide.md
index 8ba8c379d..a03490988 100644
--- a/docs/guide/xlang_serialization_guide.md
+++ b/docs/guide/xlang_serialization_guide.md
@@ -289,10 +289,10 @@ func main() {
   F2 map[int8]int32
  }
  fory := forygo.NewFory()
- if err := fory.RegisterTagType("example.SomeClass1", SomeClass1{}); err != 
nil {
+ if err := fory.RegisterNamedType(SomeClass1{}, "example.SomeClass1"); err != 
nil {
   panic(err)
  }
- if err := fory.RegisterTagType("example.SomeClass2", SomeClass2{}); err != 
nil {
+ if err := fory.RegisterNamedType(SomeClass2{}, "example.SomeClass2"); err != 
nil {
   panic(err)
  }
  obj1 := &SomeClass1{}
@@ -481,7 +481,7 @@ func main() {
   F3 map[string]string
  }
  fory := forygo.NewFory(true)
- if err := fory.RegisterTagType("example.SomeClass", SomeClass{}); err != nil {
+ if err := fory.Register(SomeClass{}, 65); err != nil {
   panic(err)
  }
  value := &SomeClass{F2: map[string]string{"k1": "v1", "k2": "v2"}}


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

Reply via email to