Basic Types
```go
str := "Hello"
```
Multiline string
```go
str := `Multiline
string`
```
Typical types
```go
num := 3 // int
num := 3. // float64
num := 3 + 4i // complex128
num := byte('a') // byte (alias for uint8)
```
Other Types
```go
var u uint = 7 // uint (unsigned)
var p float32 = 22.7 // 32-bit float
```
```go
// var numbers [5]int
numbers := [...]int{0, 0, 0, 0, 0}
```
```go
func main () {
b := *getPointer()
fmt.Println("Value is", b)
```
```go
func getPointer () (myPointer *int) {
a := 234
return &a
```
```go
a := new(int)
*a = 234
```
Pointers point to a memory location of a variable. Go is fully garbage-collected.
```go
i := 2
f := float64(i)
u := uint(i)
```
```go
slice := []int{2, 3, 4}
```
```go
slice := []byte("Hello")
```