go basic slides

2021-07-13  本文已影响0人  戈壁堂

我的学习经历


语言历史


Go 1 2012.03.28
Go 1.1 2013.05.13
Go 1.2 2013.12.01
Go 1.3 2014.06.18
Go 1.4 2014.12.10
Go 1.5 2015.08.19
Go 1.6 2016.02.17
Go 1.7 2016.08.15
Go 1.8 2017.02.16
Go 1.9 2017.08.24
Go 1.10 2018.02.16
Go 1.11 2018.08.24
Go 1.12 2019.02.25
Go 1.13 2019.09.03
Go 1.14 2020.02.25
Go 1.15 2020.08.11
Go 1.16 2021.02.16


git log --reverse --pretty=oneline

first commit 7chars

commit 7d7c6a97f815e9279d08cfaea7d5efb5e90695a8
Author: Brian Kernighan <bwk>
Date:   Tue Jul 18 19:05:45 1972 -0500

    hello, world

    R=ken
    DELTA=7  (7 added, 0 deleted, 0 changed)

语言特点

我的视角


FTP文件服务器

package main

import (
  "log"
  "net/http"
  //"os"
)

func main() {
  // fs := http.FileServer(HTMLDir{http.Dir("./static")})
  fs := http.FileServer(http.Dir("./go")) //absolute path if necessary
  http.Handle("/", fs)

  log.Println("Listening on :3000...")
  err := http.ListenAndServe(":3000", nil)
  if err != nil {
    log.Fatal(err)
  }
}

如何学习

任意一本你可以找到的tutorial


基础知识


Java对比理解

Go vs. Java: main differences


Variables

Control flow

Files

Data

Functions

Concurrency

Time

JSON

Additional


Go编程模式系列


实战

saber演示


上一篇 下一篇

猜你喜欢

热点阅读