Sub

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

After intercepting a string of a specified length from a specified position, output a new string

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