Maps and bookmarks app

This commit is contained in:
Archie Fox
2025-02-28 23:22:39 +03:00
parent 17ce5f3575
commit fc1b81d22a
2 changed files with 74 additions and 9 deletions

16
go-demo-3/maps/main.go Normal file
View File

@@ -0,0 +1,16 @@
package maps
import "fmt"
func main() {
m := map[string]string{
"PurpleSchool": "https://purpleschool.ru",
}
m["Google"] = "https://google.com"
m["Gmail"] = "https://gmail.com"
fmt.Println(m)
delete(m, "Gmail")
for _, v := range m {
fmt.Println(v)
}
}