看到一个Go by Example的网站,内容Go的小程序,介绍Go的语法。就将小站翻译出来,旨在提高自己,同时帮助初学者。以下就是翻译的内容的连接:


Go by Example


Go 是被设计用来编写简单、快速、和可靠软件的一门开源编程语言。

Go by Example使用带有注释的程序帮你着手使用Go。看看第一个例子或者浏览下面的全部列表。

  • Hello World

  • Values

  • Variables

  • Constants

  • For

  • If/Else

  • Switch

  • Arrays

  • Slices

  • Maps

  • Range

  • Functions

  • Multiple Return Values

  • Variadic Functions

  • Closures

  • Recursion

  • Pointers

  • Structs

  • Methods

  • Interfaces

  • Errors

  • Goroutines

  • Channels

  • Channel Buffering

  • Channel Synchronization

  • Channel Directions

  • Select

  • Timeouts

  • Non-Blocking Channel Operations

  • Closing Channels

  • Range over Channels

  • Timers

  • Tickers

  • Worker Pools

  • Rate Limiting

  • Atomic Counters

  • Mutexes

  • Stateful Goroutines

  • Sorting

  • Sorting by Functions

  • Panic

  • Defer

  • Collection Functions

  • String Functions

  • String Formatting

  • Regular Expressions

  • JSON

  • Time

  • Epoch

  • Time Formatting / Parsing

  • Random Numbers

  • Number Parsing

  • URL Parsing

  • SHA1 Hashes

  • Base64 Encoding

  • Reading Files

  • Writing Files

  • Line Filters

  • Command-Line Arguments

  • Command-Line Flags

  • Environment Variables

  • Spawning Processes

  • Exec'ing Processes

  • Signals

  • Exit

以上为https://gobyexample.com/的全部内容,由于内容较多,会分批次完成,所以只有添加超链接的部分已做翻译。