slice

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(data any, len int) (out []any)

Split 将一个切片划分为多个大小为len的切片

Types

type FlagSetArray added in v0.1.9

type FlagSetArray[T any] struct {
	HandleSet func(v string) T
	// contains filtered or unexported fields
}

func (*FlagSetArray[T]) Get added in v0.1.9

func (f *FlagSetArray[T]) Get() []T

func (*FlagSetArray[T]) Set added in v0.1.9

func (f *FlagSetArray[T]) Set(v string) error

func (FlagSetArray[T]) String added in v0.1.9

func (f FlagSetArray[T]) String() string

Jump to

Keyboard shortcuts

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