On Wed, 19 Aug 2020, at 11:54 AM, Brian Candler wrote: > Or another thought - perhaps you are looking for *adjacent* repeats only? > > In that case strings.Count doesn't help because it counts all occurrences, > not just adjacent ones.
I suspect the OP is looking for the longest repeating substring. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7daaaae9-dca1-483a-86ca-7695f59dd0f2%40www.fastmail.com.
