Differences between revisions 26 and 29 (spanning 3 versions)
Revision 26 as of 2025-10-05 22:17:15
Size: 2140
Comment: Link
Revision 29 as of 2025-10-10 15:00:56
Size: 1869
Comment: 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 51: Line 24:
 * [[Go/ArraysAndSlices|Arrays and Slices]]  * [[Go/Arrays|Arrays]]
Line 58: Line 31:
 * [[Go/Slices|Slices]]
Line 59: Line 33:

Line 67: Line 39:

Line 98: Line 68:

Line 103: Line 71:
 * [[Go/PelletierGoTomlV2|pelletier/go-toml/vs]]  * [[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)