Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashSet ¶
type HashSet[T comparable] struct { // contains filtered or unexported fields }
HashSet 这是一个 set 结构 (去重)
func NewHashSet ¶
func NewHashSet[T comparable]() *HashSet[T]
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
List 这是一个 list 的包装
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Map golang 的 map 是无序的 有时候其实是需要一个有序的 map 结构
func NewMap ¶
func NewMap[K comparable, V any]() *Map[K, V]
Click to show internal directories.
Click to hide internal directories.