Extracts a portion of a string between two indices.
1 2
var result string = strings.substring("hello world", 0, 5) printf("%s\n", result) // hello