package
Version:
v1.1.42
Opens a new window with list of versions in this module.
Published: Dec 8, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Map 安全的map
func (m *Map[K, T]) Clear()
Clear 清空map
func (m *Map[K, T]) Delete(key K)
Delete 删除map中的值
func (m *Map[K, T]) Get(key K) (T, bool)
Get 获取map中的值
func (m *Map[K, T]) List() map[K]T
List 获取map中的所有值
func (m *Map[K, T]) Set(key K, value T)
Set 设置map中的值
Source Files
¶
Click to show internal directories.
Click to hide internal directories.