GithubHelp home page GithubHelp logo

ppzky / learning-go-zh-cn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikespook/learning-go-zh-cn

0.0 1.0 0.0 5.73 MB

一本学习 Go 语言的免费电子书。

Home Page: http://mikespook.com/learning-go/

Makefile 0.58% TeX 83.35% Perl 1.91% Go 11.41% Elixir 0.19% Shell 2.56%

learning-go-zh-cn's Introduction

学习 Go 语言(Ver II) - 一本学习 Go 语言的免费电子书。

本书当前包含:

  1. 安装与概述
  • 演示了如何安装 Go 语言,并通过逐行分析源代码示例展示了 Go 语言的基本特性。
  1. 类型,变量和控制流程
  2. 函数的编写和使用
  3. 包与项目
  • 函数和数据通过包组织在一起。这里将会看到如何编写包。对如何在包中使用单元测试也进行了介绍;
  • 如何对一个 Go 语言的项目的目录进行设计,以及如何使用 go 命令的 vendor 功能管理包的依赖。
  1. 结构体
  • 学习如何创建自定义数据类型,并在其上定义函数(即方法)。
  1. 接口
  • Go 并不支持传统意义上的面向对象。在 Go 中核心概念是接口。
  1. 并发
  • 通过关键字 go,可以在独立的调度中运行函数,这个并行执行的函数叫做 goroutine;
  • 通过 channel 可以在 goroutine 之间进行安全的数据通讯。
  1. 文件与通讯
  • 如何建立/读取/写如文件。以及网络相关内容。

每章包含若干个提供了答案的练习来帮助你提升。

当前正在撰写的是 Ver II 版本,放弃 LaTeX,转而采用 markdown。

查看 Ver I 版本

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.