Declaration
func Find(target string, findValue string, startIndex int) int
go
Parameters
Input
Name | Type | Description |
---|---|---|
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 |
Return
Type | Description |
---|---|
Int | The first occurrence of the specified string in the target string. The string position starts at 0. |