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
+22
View File
@@ -0,0 +1,22 @@
package main
import "fmt"
func main() {
mapper := make(map[string]int)
fmt.Println("Empty map: ",mapper)
mapper["Alice"] = 24
mapper["Bob"] = 14
fmt.Println("After updating mapper: ", mapper)
Mapper := map[string]int{
"Alice": 1000,
"Bob": 50,
}
Mapper["Jo"] = 3000
fmt.Println("Initialized map: ",Mapper)
}