Quick actions

cmd+k|ctrl+k

Navigation

Languages

Slices / Append to slice / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:13:12Z

Updated

2019-03-26T10:13:12Z

package main

import "fmt"

func main() {
	a := []string{"hello"}
	a = append(a, "world", "now")
	fmt.Printf("a: %#v\n", a)
}
INFO