本人学习go之路,这个是我看的第一本书,分享给大家!
简介和安装:Introduction
1 - Introduction and Installation
2 - Hello World
变量:Variables, Types and Constants
3 - Variables
4 - Types
5 - Constants
方法和包:Functions and Packages
6 - Functions
7 - Packages
条件:Conditional Statements and Loops
8 - if else statement
9 - Loops
10 - Switch Statement
集合:Arrays, Slices and Variadic Functions
11 - Arrays and Slices
12 - Variadic Functions
结构:More types
13 - Maps
14 - Strings
指针:Pointers, Structs and Methods
15 - Pointers
16 - Structs
17 - Methods
接口:Interfaces
18 - Interfaces - I
19 - Interfaces - II
并发:Concurrency
20 - Introduction to Concurrency
21 - Goroutines
22 - Channels
23 - Buffered Channels and Worker Pools
24 - Select
25 - Mutex
面向对象:Object Oriented Programming
26 - Structs Instead of Classes
27 - Composition Instead of Inheritance
28 - Polymorphism
错误处理:Defer and Error Handling
29 - Defer
30 - Error Handling
31 - Custom Errors
32 - Panic and Recover
第一个:First Class Functions
33 - First Class Functions
反射:Reflection
34 - Reflection
文件:File Handling
35 - Reading Files
36 - Writing Files
按照这个基础学一遍,基本就掌握了go所有语法
学习地址:https://golangbot.com/learn-golang-series/