Differences between revisions 13 and 31 (spanning 18 versions)
Revision 13 as of 2023-01-08 06:07:55
Size: 1574
Comment:
Revision 31 as of 2025-10-10 15:21:53
Size: 1839
Comment: Moved links
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 13: Line 13:
== Example == == Installation and Setup ==
Line 15: Line 15:
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
}}}
Most [[Linux]] and [[BSD]] distributions offer a `go` package.
Line 42: Line 23:
 * [[Go/DataTypes|Data Types]]
 * [[Go/ArrayAndSlice|Arrays and Slices]]
 * [[Go/Channel|Channels]]
 * [[Go/Goroutine|Goroutines]]
 * [[Go/Interface|Interfaces]]
 * [[Go/Map|Maps]]
 * [[Go/Pointer|Pointers]]
 * [[Go/String|Strings]]
 * [[Go/Arrays|Arrays]]
 * [[Go/Bytes|Bytes]]
 * [[Go/Channels|Channels]]
 * [[Go/Goroutines|Goroutines]]
 * [[Go/Interfaces|Interfaces]]
 * [[Go/Maps|Maps]]
 * [[Go/Numerics|Numerics]]
 * [[Go/Pointers|Pointers]]
 * [[Go/ReceiverMethods|Receiver methods]]
 * [[Go/Slices|Slices]]
 * [[Go/Strings|Strings]]
Line 51: Line 35:
== Tool chain ==
Line 52: Line 37:
 * [[Go/Compiler|Compiler]]
 * [[Go/DeployingInContainers|Deploying in Containers]]
 * [[Go/Modules|Modules]]
Line 53: Line 41:
== Parsers == == Standard Library Packages ==
Line 55: Line 43:
 * [[Go/BufIO|bufio]]
 * [[Go/DatabaseSql|database/sql]]
 * [[Go/EncodingBase64|encoding/base64]]
Line 56: Line 47:
 * [[Go/EncodingJson|encoding/json]]
Line 57: Line 49:
 * [[Go/EncodingJson|encoding/json]]



== Standard Library Modules ==

 * [[Go/Bytes|bytes]]
 * [[Go/EncodingBase64|encoding/base64]]
Line 82: Line 66:
 * [[Go/Strings|strings]]
== Third-Party Packages ==

 * [[Go/GorillaWebSocket|gorilla/websocket]]
 * [[Go/PelletierGoTomlV2|pelletier/go-toml/v2]]

----
Line 86: Line 76:
== Tool chain == == See also ==
Line 88: Line 78:
 * [[Go/Compiler|Compiler]]
 * [[Go/Modules|Modules]]
[[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).


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

Standard library reference


CategoryRicottone

Go (last edited 2025-10-10 15:21:53 by DominicRicottone)