Find

Strings
Tanto lado del cliente como del usuario
Disponible en PC y móvil

Re-search for the first occurrence of a specified string in the target string.

Declaración

func Find(target string, findValue string, startIndex int) int
go

Parámetros

Entrada

Nombre Tipo Descripción
Target String Target string
Find Value String The specified string to search for
Start Index Int Search for a string from the start position, the string position starts at 0

Regresar

Tipo Descripción
Int The first occurrence of the specified string in the target string. The string position starts at 0.