Maps and bookmarks app
This commit is contained in:
16
go-demo-3/maps/main.go
Normal file
16
go-demo-3/maps/main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user