package main
import "fmt"
func main() {
slices := [][]string{}
row1 := []string{"go", "java", "python"}
row2 := []string{"nodejs"}
row3 := []string{"c", "c++", "c#", "php"}
slices = append(slices, row1)
slices = append(slices, row2)
slices = append(slices, row3)
for i := range slices {
fmt.Println(slices[i])
}
fmt.Println("\n", slices[0][0], "\n")
for i := range slices {
for j := range slices[i] {
fmt.Println(slices[i][j])
}
}
}
/*
run:
[go java python]
[nodejs]
[c c++ c# php]
go
go
java
python
nodejs
c
c++
c#
php
*/