Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2021-11-12 19:54:39
Size: 323
Comment:
Revision 5 as of 2022-05-11 14:14:50
Size: 934
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''Go''', also known as '''Golang''' is a static typed, compiled programming language. The '''Go programming language''', also known as '''Golang''' is a compiled, static-typed language.
Line 13: Line 13:
== 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
}}}

----



== Data Types ==

 * [[Go/NumericTypes|Numeric Types]]
 * [[Go/Pointers|Pointers]]
 * [[Go/ArraysAndSlices|Arrays and Slices]]
 * [[Go/Channels|Channels]]
 * [[Go/Maps|Maps]]
 * [[Go/StringsAndRunes|Strings and Runes]]
 * [[Go/Interfaces|Interfaces]]



== Concurrency Models ==

 * [[Go/Goroutines|Coroutines]]


Line 15: Line 60:
* [[Go/Compiler|Compiler]]  * [[Go/Compiler|Compiler]]

Go

The Go programming language, also known as Golang is a compiled, static-typed language.

The complete toolchain (compiler, dependency management, etc.) is invoked by subcommands of go(1)


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


Data Types

Concurrency Models

Tool chain


CategoryRicottone

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