This commit is contained in:
a.pivkin
2025-07-16 08:15:26 +03:00
parent cebbf27b3a
commit 0635aaa5ae
53 changed files with 76 additions and 4 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)
}