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
+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)
}