lists
This commit is contained in:
18
lists/maps/maps.go
Normal file
18
lists/maps/maps.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user