feat(Go-StudyExample): 新增 网络及端口测试、传值和传址的比较、切片测试、Map测试、通道测试、测试init调用、测试error、defer关键字、recover测试、测试携程的异常捕获、矩阵旋转

This commit is contained in:
huangzj
2020-07-13 17:02:04 +08:00
parent f5894a2680
commit 9ad10e8cd9
12 changed files with 514 additions and 13 deletions
+22 -13
View File
@@ -8,26 +8,35 @@ package main
import (
"Go-StudyExample/example"
"Go-StudyExample/example/originGoLanguage"
_ "Go-StudyExample/example/originGoLanguage/init"
"Go-StudyExample/example/problem"
)
func main() {
////--------------------------测试mapStructure的功能-----
////这边的四种使用方式差别感觉不是很大...
//example.MapStructureTestFunc()
//example.MapStructureTestFunc1()
//example.MapStructureTestFunc2()
//example.MapStructureTestFunc3()
//
//--------------------------测试mapStructure的功能-----
//这边的四种使用方式差别感觉不是很大...
example.MapStructureTestFunc()
example.MapStructureTestFunc1()
example.MapStructureTestFunc2()
example.MapStructureTestFunc3()
////--------------------------测试json包的转换功能
//example.JsonMarshalTest()
//example.JsonUnmarshalTest()
//
example.JsonMarshalTest()
example.JsonUnmarshalTest()
////克隆测试
//example.TestClone()
//
example.TestClone()
////二维码测试
//example.QrCodeTest()
example.QrCodeTest()
//图片测试
example.ImageTest()
//go原生语言测试
originGoLanguage.TestOriginLang()
//矩阵旋转
problem.MatrixRotationTest()
}