golang map erase

阅读量: searchstar 2022-05-23 14:37:28
Categories: Tags:

func delete(m map[Type]Type1, key Type)

无返回值。

官方文档:https://pkg.go.dev/builtin#delete

来源:https://stackoverflow.com/questions/1736014/delete-key-in-map