learning_go/spec_course/Lec9/main.go
a.pivkin 0635aaa5ae kk
2025-07-16 08:15:26 +03:00

21 lines
336 B
Go

package main
import "fmt"
func main() {
myWords := make([]string,0,20)
myWords = append(myWords, "one","two","three")
fmt.Println(myWords)
anotherWords := []string{"1","2","3"}
myWords = append(myWords, anotherWords...)
fmt.Println(myWords)
mSlice := [][]int{
{1,2,3},
{2,3},
{1,1,1},
{2,2},
}
fmt.Println(mSlice)
}