Sample code for 30+ languages & platforms
Go

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Go Downloads

Go
    sb := chilkat.NewStringBuilder()
    sb.Append("<company><name>Chilkat Software</name></company>")

    // For example, to get the company name in the string above...
    companyName := sb.GetBetween("<name>","</name>")
    fmt.Println("Company Name = ", *companyName)

    sb.DisposeStringBuilder()