TA的每日心情 | 开心 2019-11-8 00:00 |
---|
签到天数: 10 天 [LV.3]偶尔看看

永久VIP
- 积分
- 521
|
发表于 2019-11-3 00:00:00
728 浏览 1 回复
[Golang]
GO 语言学习辅导pdf
本帖最后由 scourglass22 于 2019-11-4 23:07 编辑
目录
写在前面的话...............................................................................10
为什么我用GO来编程...........................................................11
英文原文:WHY IPROGRAM IN G0.....................................................11
基于Go的实践........................................................................13
在产品中使用Go....................................................................14
总结......................................................................................15
英文原文:WHYI PROGRAM IN G........................................................15
第一章GO的安装与配置........................................................17
一、利用二进制发行包安装 GOLANG.................................................17
1.系统需求..........................................................................17
2.下载Go Too.S..................................................................17
3.安装Go Tool.S.............................................................17
4.FREEBSD,LINUX以及MACOSX压缩包..................................................18
5.MACOSX包安装工具..............................................................19
6.WINDoW5下安装..............................................................19
7.测试你的安装......................................................................20
二、实用开发工具介绍..............................................................20
LuelDE主要特点......................................................................21
安装配置.........................................................................22
使用LTEIDE开发一个简单的Go语言应用示例......................................24
项目简介.......................................................................24
建立项目结构....................................................................25
FiBONACa数列规律..............................................................25
编写FB函数..............................................................................26
编写测试.............................................................................28
性能测试........................................................................30
支持大数操作.......................................................................30
编写Fe函数代码示例……33
编写8Um主程序....................................................33
调试............................................................................35
交叉编译........................................................................35
编写README...............................................................36
本文代码.......................36
关于作者...................37
三、Go语言中的工具.....................................................38
第二章GO语言入门与基本概念..........................................43
一、通过代码写出GO的HELLO WORLD程序.......................................43
1.60的HELLO WORLD程序...................................................46
2.G0的中文变量程序..............................................................47
3.-起看看FMT包..............................................................48
1.例子EXAMT01.60..........................................................9
2.例子EXFMT02.60:......................................................51
3.例子EXFMT03.60............................................................52
4.6例子EXFMT04.60............................................................54
5.例子EXFMTO5.60.............................................................56
字符串和BYTE切片类型说明:.................................................57
指针类型说明:..................................................................57
其他符号说明:.....................................................................57
二、写G0程序中一些常见的语法和其它错误......................................s9
1.不必要的导入(UNNCE55ARY lMPORIS.).....................................59
2.确切的名称一—大小写敏感..................................................59
3.用分号分开两行代码...........................................................60
4.不必要的分号.................................................................62
5.其它一些常见的语法错误.........................................................62
6.再说命名.............................................................................63
7.强调语意.........................................................................65
三、如何写GO程序.........................................................67
2.GOPATH以及工作区的代码组织...............................................67
3.导入路径.......................................................................68
4.包名称.................................................................................69
5.远程包..............................................................................71
6.包构建以及安装..................................................................73
6.生成可执行文件..................................................................74
7.测试.........................................................................76
四、构建高效率的GO程序..........................................................78
1.示例......................................................................................78
2.格式化.............................................................................78
3.注释..........................................................................................79
4.名称...........................................................................................82
5.包名称.......................................................................................82
6.GETTERS........................................................................................84
7.接口名称...............................................................................84
8.多词汇名称...............................................................................85
9.分号.........................................................................................85
10.控制结构..............................................................................86
1.IF................................................................................................86
2.声明重载(REDECLARATION)..........................................................91
3.FOR..............................................................................................1
1.8REAK关键字.........................................................................96
2.cONTINUE 关键字........................................................................97
3.RANGE关键字..............................................................................98
4.5WTCH...................................................................................100
11.函数(FUNCTIONS)................................................................102
1)多值返回(MULTIPLE RETURN VALUES)...............................................102
2)带名称的结果参数................................................................103
3)延迟(DEFER).......................................................................104
五、错误处理方式.............................................................109
六、垃圾回收特性.................................................................111
第三章GO数据结构及语法说明...................................................114
一、GO数据结构................................................................114
1基本数据类型..........................................................................114
2定义变量.......................................................................114
3常量...............................................................................116
4类型转换......................................................................116
5数组类型..........................................................................117
6SuCE类型.........................................................................117
7 MAP类型..........................................................................118
8数组,SICE,MAP的操作.............................................................118
9.通过NEW分配内存...............................................................120
10.构造函数与复合声明(CONSTRUCTORS AND COMPOSTTE LITERALS).....................121
11.用MAKE分配内存.............................................................127
12.MAKE返回初始化后的(非零)值..............................................127
二、语法说明.................................................................128
第四章GO的面向对象编程......................................................1.31
一、GO中的STRUCT,无类实现面向对象编程......................................131
封装以及STRUCT及其变量的访问.................................................136
二、GO STRUCT中的匿名字段....................................................137
匿名字段发生命名冲突............................................................1.39
三、GO STRUCTS中的方法......................................................142
匿名字段中的方法...............................................................147
三、G0中的继承与子类——或者类似的性质.........................................150
四、G0的多继承...................................................................155
五、GO中的接口...................................................................157
六、GO的接口——进化与高可用性的设计.......................................163
七、G0的多态....................................................................171
八、要组合,不要继承..........................................................175
第五章并行.......................................................................180
一、GO中的GOROUTINES........................................................180
二、GO中的CHANNEL.S.........................................................185
三、G0中的 CHANNELS—RANGE与SELECT.................................191
CHANNEL与SELECT....................................................................193
四、并行说明...........................................................................198
第六章网络编程..............................................................200
一、GO网络编程的 HELLO WORLD程序...........................................200
二、GO模板.......................................................................204
字段替换—{{.1ELDNAME]...........................................................205
TEMPLATE.MUST函数——检测模板是否正确...........................................208
三、GO模板——结构与数据控制...................................................210
管道(PIPELINE).........................................................................210
模板中的IF-6LSE-6N0..............................................................211
点(.)..............................................................................213
WTH-END结构.......................................................................213
被重新定义的函数....................................................................215
GO模板集......................................................................216
四、如何基于GO创建数据库驱动的WEB应用..........................................220
数据库..........................................................................220
插一点有半上下文雄钱的知识.......................................................229
连接到MYSQL数据库服务器......................................................235
控制器..............................................................................241
运行我们的应用...................................................................245
获取该示例的代码.....................................................................245
其它框架.............................................................................245
使用MARKDOWN格式化文章内容...................................................246
应用运行截图............................................................................248
五、在GO网络编程中使用外部API基于GOOGLE API 创建URL地址缩短服务..…249
第一步确定已经正确的创建了开发环境.................................................249
第二步安装APIS......................................................................250
第三步在我们的代码中导入该API.......................................................250
完成其它的代码.........................................................................250
附参考:...............................................................................254
使用G0解析超大XML文档.............................................................254
后记.................................................................................261
下载地址:
|
|
|
|
|
|
|
TA的每日心情 | 衰 2022-6-30 11:35 |
---|
签到天数: 32 天 [LV.5]初驻小吧

永久VIP
- 积分
- 2771
|
发表于 2020-9-16 23:13:01
|
|
|
|
|
|
登录或注册
官方QQ群
825348618(程序员教程吧互助群)
扫一扫快速加入

程序员教程吧-更新最快的IT教程网 本站资源源自互联网收集及网友分享-如有侵权请发邮件到admin@cxyjc8.com联系删除!
|