Contoh Golang Slice
// Program to create a slice and print its elements
package main
import "fmt"
func main() {
// declaring slice variable of type integer
numbers := []int{1, 2, 3, 4, 5}
// print the slice
fmt.Println("Numbers: ", numbers)
}
SAMER SAEID