I'm trying to get the value "done" in the following which is in a byte slice returned at the end of a chunked http stream.
This is the go regex I've done so far
syncStatusRegex = regexp.MustCompile("(?i)X-sync-status:(.*) ")
I just want it to return this bit
This is the code to get the status
syncStatus := strings.TrimSpace(string(syncStatusRegex.Find(body))) fmt.Println(syncStatus)
How do I get it to just return "done" and not the header?