Insert Value at End
Insert a value at the end of the list.
Examples in
Go
package main
import (
"fmt"
)
func main() {
s := []int{1, 2, 3, 4, 5}
s = append(s, 6)
fmt.Println(s)
}
Last Run
:
[1 2 3 4 5 6]