You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The built-in function `delete` removes the element with key `k` from a [map](#map-types)`m`. The value `k` must be [assignable]() to the key type of `m`.
```go
delete(m, k) // remove element m[k] from map m
```
If the map m is nil or the element m[k] does not exist, delete is a no-op.