Differences between revisions 25 and 31 (spanning 6 versions)
Revision 25 as of 2025-10-05 19:14:01
Size: 2090
Comment: Fix link
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 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/ArraysAndSlices|Arrays and Slices]]
 * [[Go/Arrays|Arrays]]
 * [[Go/Bytes|Bytes]]
Line 56: Line 29:
 * [[Go/Numerics|Numerics]]
Line 58: Line 32:
 * [[Go/Slices|Slices]]
Line 59: Line 34:

Line 68: Line 41:

Line 73: Line 44:
 * [[Go/Bytes|bytes]]  * [[Go/DatabaseSql|database/sql]]
Line 94: Line 65:
 * [[Go/DatabaseSql|database/sql]]
Line 96: Line 66:
 * [[Go/Strings|strings]]

Line 103: 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)