package
Version:
v1.18.8
Opens a new window with list of versions in this module.
Published: Jan 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Map[K any, V any] struct {
}
Map 二次封装的泛型sync.Map
func (this *Map[K, V]) Get(k K) (V, bool)
func (this *Map[K, V]) Put(k K, v V)
type Pool[E any] struct {
}
Pool 二次封装的泛型sync.Pool
func (this *Pool[E]) Acquire() *E
Acquire 申请内存
func (this *Pool[E]) Release(obj *E)
Release 释放内存
Source Files
¶
Click to show internal directories.
Click to hide internal directories.