Skip to content

Commit 2e9f78b

Browse files
authored
Create go-features.cn.md
1 parent 54bab08 commit 2e9f78b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

thrifter/go-features.cn.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
title: Thrifter Features (Go Version)
4+
---
5+
6+
* TOC
7+
{:toc}
8+
9+
# 超简单的 api
10+
11+
```go
12+
// 序列化成 thrift 协议
13+
thriftEncodedBytes, err := Thrifter.Marshal([]int{1, 2, 3})
14+
// 反序列化回 go 对象
15+
var val []int
16+
err = Thrifter.Unmarshal(thriftEncodedBytes, &val)
17+
```

0 commit comments

Comments
 (0)