go remove from map

package main

import "fmt"

func main() {
    // Create a map
    myMap := map[string]int{
        "apple":  1,
        "banana": 2,
        "cherry": 3,
    }

    // Display the original map
    fmt.Println("Original Map:", myMap)

    // Remove an entry from the map by key
    keyToRemove := "banana"
    delete(myMap, keyToRemove)

    // Display the map after removing the entry
    fmt.Println("Map after removing", keyToRemove+":", myMap)
}