add 3 app - maps
This commit is contained in:
3
go-demo-3/go.mod
Normal file
3
go-demo-3/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module demo/bookmarks
|
||||
|
||||
go 1.23.6
|
||||
16
go-demo-3/main.go
Normal file
16
go-demo-3/main.go
Normal file
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user