|
Size: 1597
Comment:
|
Size: 2140
Comment: Link
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| The '''Go programming language''', also known as '''Golang''', is a compiled, static-typed language. | The '''Go programming language''', also known as '''Golang''', is a static typed and compiled language. |
| Line 5: | Line 5: |
| The complete toolchain (compiler, dependency management, etc.) is invoked by subcommands of '''`go(1)`''' | The complete toolchain is distributed as '''`go(1)`'''. |
| Line 40: | Line 40: |
| == Installation and Setup == Most [[Linux]] and [[BSD]] distributions offer a `go` package. ---- |
|
| Line 43: | Line 51: |
| * [[Go/ArrayAndSlice|Arrays and Slices]] * [[Go/Channel|Channels]] * [[Go/Goroutine|Goroutines]] * [[Go/Interface|Interfaces]] * [[Go/Map|Maps]] * [[Go/Pointer|Pointers]] * [[Go/String|Strings]] |
* [[Go/ArraysAndSlices|Arrays and Slices]] * [[Go/Channels|Channels]] * [[Go/Goroutines|Goroutines]] * [[Go/Interfaces|Interfaces]] * [[Go/Maps|Maps]] * [[Go/Pointers|Pointers]] * [[Go/ReceiverMethods|Receiver methods]] * [[Go/Strings|Strings]] |
| Line 53: | Line 62: |
| == Parsers == | == Tool chain == |
| Line 55: | Line 64: |
| * [[Go/EncodingCsv|encoding/csv]] * [[Go/EncodingXml|encoding/xml]] * [[Go/EncodingJson|encoding/json]] |
* [[Go/Compiler|Compiler]] * [[Go/DeployingInContainers|Deploying in Containers]] * [[Go/Modules|Modules]] |
| Line 61: | Line 70: |
| == Standard Library Modules == | == Standard Library Packages == |
| Line 66: | Line 75: |
| * [[Go/EncodingCsv|encoding/csv]] * [[Go/EncodingJson|encoding/json]] * [[Go/EncodingXml|encoding/xml]] |
|
| Line 82: | Line 94: |
| * [[Go/DatabaseSql|database/sql]] | |
| Line 87: | Line 100: |
| == Tool chain == | == Third-Party Packages == |
| Line 89: | Line 102: |
| * [[Go/Compiler|Compiler]] * [[Go/Modules|Modules]] |
* [[Go/GorillaWebSocket|gorilla/websocket]] * [[Go/PelletierGoTomlV2|pelletier/go-toml/vs]] ---- == See also == [[https://go.dev/tour|A Tour of Go]], an interactive tutorial [[https://go.dev/ref/spec|The Go Programming Language Specification]] [[https://pkg.go.dev/std|Standard library reference]] |
Go
The Go programming language, also known as Golang, is a static typed and compiled language.
The complete toolchain is distributed as go(1).
Contents
Example
A hello world program looks like:
package main
import "fmt"
func main() {
fmt.Println("hello world")
}To compile and run the program, try:
go build hello.go ./hello # or go run hello.go
Installation and Setup
Most Linux and BSD distributions offer a go package.
Language
Tool chain
Standard Library Packages
Third-Party Packages
See also
A Tour of Go, an interactive tutorial
The Go Programming Language Specification
