arrayKit

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 0 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	IndexNotFound = -1 // 数组中元素未找到的下标,值为-1
)

Variables

This section is empty.

Functions

func Contains

func Contains(strs []string, char string) bool

Contains 数组中是否包含元素 @param strs 数组 @param value 被检查的元素 @return 是否包含

func IndexOf

func IndexOf(strs []string, char string) int

IndexOf 返回数组中指定元素所在位置,未找到返回IndexNotFound @param strs 字符串数组 @param char 被检查的元素 @return 数组中指定元素所在位置,未找到返回IndexNotFound

Types

This section is empty.

Jump to

Keyboard shortcuts

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