This commit is contained in:
a.pivkin
2025-07-10 21:09:32 +03:00
parent 2874926fcc
commit 31515dba8d
13 changed files with 176 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
module main.go
go 1.24.4
+20
View File
@@ -0,0 +1,20 @@
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)
}