Differences between revisions 4 and 5
Revision 4 as of 2022-05-11 14:12:42
Size: 670
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 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
}}}

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 2024-03-17 14:58:51 by DominicRicottone)