Documentation
¶
Overview ¶
Package rock As the cornerstone of implementing generic methods, implementing generic related operations with minimal dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractParam ¶
func ExtractParam[T constraints.Equable](defValue T, args ...T) T
ExtractParam Extract indefinite parameters from functions and default code values
func ExtractParamFunc ¶ added in v1.4.0
func ExtractParamFunc[T constraints.Equable](defFunc func() T, args ...T) T
ExtractParamFunc Implementing parameter extraction through custom callback functions
func ExtractParamIndex ¶ added in v1.4.1
func ExtractParamIndex[T constraints.Equable](defValue T, index int, args ...T) T
ExtractParamIndex Extract indefinite parameters from functions and default code values and point index
index => [1, ..]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.