go20/day04/struct/json.drawio
yumaojun03 1aa8ec7f3e ```
feat: 添加Go语言函数式编程和结构体进阶教程

- 新增Reduce函数实现map-reduce模式
- 实现装饰器模式wrapper函数
- 添加函数闭包和计数器功能
- 完善结构体方法、继承、组合和重写机制
- 增加JSON序列化反序列化及标签处理
- 创建新的学习章节day04关于结构体进阶内容
- 更新README目录结构包含新章节
```
2026-02-01 16:00:12 +08:00

76 lines
5.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<mxfile host="65bd71144e">
<diagram id="5nK-vBOAah09B86iugSh" name="第 1 页">
<mxGraphModel dx="1134" dy="607" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="3" value="obj" style="ellipse;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="80" y="230" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="4" value="" style="shape=flexArrow;endArrow=classic;html=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="254" y="269.5" as="sourcePoint"/>
<mxPoint x="514" y="269.5" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="5" value="编码规则:&lt;div&gt;json&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="354" y="210" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="7" value="bytes数组:&lt;div&gt;010101010&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="580" y="240" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="8" value="" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="580" y="370" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="9" value="bytes数组:&lt;div&gt;010101010&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="580" y="510" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="10" value="网线0101" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="720" y="395" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="11" value="" style="shape=flexArrow;endArrow=classic;html=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="550" y="540" as="sourcePoint"/>
<mxPoint x="220" y="540" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="12" value="obj" style="ellipse;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="80" y="490" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="13" value="编码规则:&lt;div&gt;json&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="490" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="14" value="序列化" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="354" y="280" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="15" value="反序列" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="555" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="16" value="Actor" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" vertex="1" parent="1">
<mxGeometry x="340" y="70" width="30" height="60" as="geometry"/>
</mxCell>
<mxCell id="17" value="字符串" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="580" y="80" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="18" value="" style="shape=flexArrow;endArrow=classic;html=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="640" y="220" as="sourcePoint"/>
<mxPoint x="640" y="160" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="19" value="字符解码" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="680" y="180" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="20" value="unicode&lt;div&gt;&lt;div&gt;utf-8&amp;nbsp;&lt;/div&gt;&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="560" y="180" width="60" height="40" as="geometry"/>
</mxCell>
<mxCell id="21" value="" style="shape=flexArrow;endArrow=classic;html=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="430" y="120" as="sourcePoint"/>
<mxPoint x="560" y="120" as="targetPoint"/>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>