18 lines
348 B
Go
18 lines
348 B
Go
package maps
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
websites := map[string]string{
|
|
"Google": "https://google.com",
|
|
"Amazon Web Services": "https://aws.com",
|
|
}
|
|
fmt.Println(websites)
|
|
fmt.Println(websites["Amazon Web Services"])
|
|
|
|
websites["LinkedIn"] = "https://linkedin.com"
|
|
fmt.Println(websites)
|
|
|
|
delete(websites, "Google")
|
|
fmt.Println(websites)
|
|
} |