array

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(val string, slice []string) (int, bool)

Check if a array have a string, and return its index number and bool

example:
var list = []string{"water","ok", "no"}
arr.Find("ok", list)

result
2, true

func FindMatch

func FindMatch(val string, slice []string) (int, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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