diff --git a/go-demo-3/go.mod b/go-demo-3/go.mod new file mode 100644 index 0000000..935a7d2 --- /dev/null +++ b/go-demo-3/go.mod @@ -0,0 +1,3 @@ +module demo/bookmarks + +go 1.23.6 diff --git a/go-demo-3/main.go b/go-demo-3/main.go new file mode 100644 index 0000000..06cb75f --- /dev/null +++ b/go-demo-3/main.go @@ -0,0 +1,16 @@ +package main + +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) + } +}