rock

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL