Declaración
func Sub(target string, startIndex int, length int) string
go
Parámetros
Entrada
Nombre | Tipo | Descripción |
---|---|---|
Target | String | Target string |
Start Index | Int | The position where the interception starts. The string position is calculated from 0 |
Length | Int | The interception length, by default, is intercepted to the end of the string |
Regresar
Tipo | Descripción |
---|---|
String | The intercepted string |