Documentation ¶
Overview ¶
Package generic 目的在于提供一组基于泛型的用于处理通用功能的函数和数据结构。该包旨在简化通用功能的实现,并提供一致的接口和易于使用的功能。 主要特性:
- 通用功能:generic 包支持处理各种通用功能,如数据结构操作、算法实现和常用工具等。您可以使用这些功能来解决各种通用问题,并提高代码的复用性和可维护性。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IDR ¶ added in v0.2.7
type IDR[ID comparable] interface { GetID() ID }
type IDR2W ¶ added in v0.2.7
type IDR2W[ID comparable] interface { IDR[ID] IDW[ID] }
type IDW ¶ added in v0.2.7
type IDW[ID comparable] interface { SetID(id ID) }
type IdR ¶ added in v0.2.6
type IdR[ID comparable] interface { GetId() ID }
type IdR2W ¶ added in v0.2.7
type IdR2W[ID comparable] interface { IdR[ID] IdW[ID] }
type IdW ¶ added in v0.2.6
type IdW[ID comparable] interface { SetId(id ID) }
Click to show internal directories.
Click to hide internal directories.