Giter VIP home page Giter VIP logo

go-notes's Introduction

Golang基础入门笔记,代码示例都放在GitHub上,后面会不断更新,出现有误,请各位读者指出。欢迎StarFork

主要分为以下章节

1. 一次性声明单个变量的三种方式
2. 一次性声明多个变量的三种方式
3. 全局变量的声明
4. 变量的重新赋值
5. 变量的重新声明

1. if单双支条件语句的使用
2. switch条件语句的使用及注意事项
3. fallthrough(switch穿透)的使用及注意事项

1. for循环语句声明及使用的三种方式
2. goto语句的使用

1. 算数运算符
2. 赋值运算符
3. 比较运算符
4. 逻辑运算符
5. 其它预算符

1. init函数的作用以及执行顺序
2. 函数的定义和多返回值的使用
3. 匿名函数
4. 全局匿名函数
5. 闭包函数
6. defer 延时机制

1. 指针的定义和使用
2. 指针作为参数传递(引用传递)
3. 指向指针的指针

1. 数组的声明
2. 数组的初始化
3. 数组的获取及遍历
4. 数组作为参数传递(值传递和引用传递)

1. 切片的定义及使用
2. 切片的遍历

1. map的声明及初始化
2. map的增删改查及遍历
3. map 是引用类型

1. 结构体的定义及声明
2. 结构体 值类型
3. 结构体 方法
4. 结构体 标签

1. 错误处理机制
2. 自定义错误

1. 继承的定义
2. 继承使用细节之一
3. 继承使用细节之二
4. 继承使用细节之三
5. 继承使用细节之四
6. 继承使用细节之五
7. 继承使用细节之六

1. 接口的定义及使用
2. 自定义类型实现多个接口
3. 接口可以继承多个接口
4. 接口是引用类型,空接口返回nil

1. goroutine的简单属使用

1. 管道的声明及简单使用
2. 声明单向管道 可写或者可读
3. select 解决管道阻塞问题

go-notes's People

Contributors

echo-mr-pengw avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.