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:15Z

Updated

2019-03-26T10:13:15Z

package main

import "fmt"

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