sliceutils

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty[T any](slice []T) bool

IsEmpty 判断切片是否为空或是否存在元素 slice 为空 或者 元素为 0 则返回 true

func StrSlice added in v1.3.12

func StrSlice(v ...any) (strings []string)

StrSlice 任意数据转化为字符串切片 v 为空或 nil 则返回一个空元素的切片

Types

This section is empty.

Jump to

Keyboard shortcuts

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