Size: 670
Comment:
|
Size: 975
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
The '''Go programming language''', also known as '''Golang''' is a compiled, static-typed language. | The '''Go programming language''', also known as '''Golang''', is a compiled, static-typed language. |
Line 13: | Line 13: |
== Data Types == | == Example == |
Line 15: | Line 15: |
* [[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]] |
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 25: | Line 40: |
== Concurrency Models == | == Language == |
Line 27: | Line 42: |
* [[Go/Goroutines|Coroutines]] | * [[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]] == Parsers == * [[Go/Xml|encoding/xml]] * [[Go/Json|encoding/json]] |
Line 34: | Line 63: |
* [[Go/Modules|Modules]] |
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)
Contents
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
Language
Parsers