Differences between revisions 21 and 31 (spanning 10 versions)
Revision 21 as of 2023-04-05 17:56:41
Size: 2159
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 statically-typed programming language. It was designed as a modern web service programming language, with strong models for concurrency, parallelism, and error handling. The '''Go programming language''', also known as '''Golang''', is a static typed and compiled language.
Line 8: Line 8:

----



== 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
}}}
Line 50: 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 67: Line 41:


== Parsers ==

 * [[Go/EncodingCsv|encoding/csv]]
 * [[Go/EncodingXml|encoding/xml]]
 * [[Go/EncodingJson|encoding/json]]


Line 80: Line 44:
 * [[Go/Bytes|bytes]]  * [[Go/DatabaseSql|database/sql]]
Line 82: Line 46:
 * [[Go/EncodingCsv|encoding/csv]]
 * [[Go/EncodingJson|encoding/json]]
 * [[Go/EncodingXml|encoding/xml]]
Line 99: Line 66:
 * [[Go/Strings|strings]]

Line 106: Line 70:
 * [[Go/PelletierGoTomlV2|pelletier/go-toml/v2]]

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)