This commit is contained in:
2024-10-23 12:10:32 +00:00
parent c7e45139ec
commit a8148f2400
8 changed files with 230 additions and 5 deletions

18
lists/maps/maps.go Normal file
View File

@@ -0,0 +1,18 @@
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)
}