golang_test

module
v0.0.0-...-5afa7de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2020 License: Apache-2.0

README

Golang

My learning notes and practices for Go language.

Golang不愧是现代的C语言, 系统的学习下来, 真是足够简洁, 而又灵活且强大, 为服务器应用而生. 迫不及待想用它开发点什么了!!

  • 罗列几项我认为的关键特性如下:
    • 编译型语言, 仅支持静态链接于是可以run everywhere; 编译过程要么error要么pass, 于是终于不用再纠结warning到底要不要解决的问题.
    • 没有class与继承等概念, 面向对象特性都通过methodinterface来实现(封装通过命名的大小写来实现). method绑定到类型仅仅是简单的定义一个属于类型的函数即可, 非常方便扩展.
      • 这一点感觉就是在怼C++/Java中的过度抽象, 最终目的是为了更好更方便的解决问题, 一切皆对象未必是最好的solution.
    • 简洁又强大的goroutine/channel!
    • 完善的profile工具, 包括对cpu, memory, blockprofile, 以及race detector工具. 性能分析不再是问题!
    • 极简的test框架
  • 个人不太喜欢的特性:
    • 固定的workspace结构: 一台机器上同时还不能有2个workspace了?

The Go Programming Language

Effective Go

Misc. Topics

Study Materials

Directories

Path Synopsis
effective-go
a-web-server
Package main comes from "Effective Go - A web server" sample code, use google's chart api to generate QR from contents.
Package main comes from "Effective Go - A web server" sample code, use google's chart api to generate QR from contents.
the-go-programming-language
ch10_jpeg
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output.
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output.
ch11_echo
Echo prints its command-line arguments.
Echo prints its command-line arguments.
ch11_word1
Package word provides utilities for word games.
Package word provides utilities for word games.
ch11_word2
Package word provides utilities for word games.
Package word provides utilities for word games.
ch13_bzip
Package bzip provides a writer that uses bzip2 compression (bzip.org).
Package bzip provides a writer that uses bzip2 compression (bzip.org).
ch13_bzipper
Bzipper reads input, bzip2-compresses it, and writes it out.
Bzipper reads input, bzip2-compresses it, and writes it out.
ch1_12_server_lissajous
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ch1_1_echo4
prints its command-line arguments
prints its command-line arguments
ch1_2_echo5
prints its command-line arguments
prints its command-line arguments
ch1_5_lissajous2
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ch1_7_fetch2
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ch1_8_fetch3
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ch1_9_fetch4
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ch1_echo1
prints its command-line arguments
prints its command-line arguments
ch1_echo2
prints its command-line arguments
prints its command-line arguments
ch1_echo3
prints its command-line arguments
prints its command-line arguments
ch1_fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ch1_fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
ch1_lissajous
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ch1_server1
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
ch1_server2
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
ch1_server3
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
ch2_2_meters_miles_conv_test
converts its numeric argument to Meters and Miles
converts its numeric argument to Meters and Miles
ch2_cf
Cf converts its numeric argument to Celsius and Fahrenheit
Cf converts its numeric argument to Celsius and Fahrenheit
ch2_echo4
Echo4 prints its command-line arguments
Echo4 prints its command-line arguments
ch2_tempconv0
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
ch2_tempconv0_test
main test for tempconv0
main test for tempconv0
ch3_basename
basename removes directory components and a .suffix.
basename removes directory components and a .suffix.
ch3_mandelbrot
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ch3_surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ch4_charcount
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
ch4_github
Package github provides a Go API for the Github issue tracker.
Package github provides a Go API for the Github issue tracker.
ch4_github_issues
Issues prints a table of Github issues matching the search terms.
Issues prints a table of Github issues matching the search terms.
ch5_6_surface_bare_return
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ch5_findlinks1
Findlinks1 prints the links in an HTML document read from standard input.
Findlinks1 prints the links in an HTML document read from standard input.
ch5_links
Package links providers a link-extraction function.
Package links providers a link-extraction function.
ch7_xmlselect
Xmlselect prints the next of selecte elements of an XML document.
Xmlselect prints the next of selecte elements of an XML document.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL