Extract substrings using slice syntax:
s := "Hello, World!"
fmt.Println(s[0:5]) // "Hello"
fmt.Println(s[7:]) // "World!"
fmt.Println(s[:5]) // "Hello"
This works with byte indices. For ASCII strings, bytes and characters align. For Unicode strings, be careful not to slice in the middle of a multi-byte character.