Description

Copy returns a new Regexp object copied from re.

When using a Regexp in multiple goroutines, giving each goroutine its own copy helps to avoid lock contention.

Copy is referenced in 3 repositories

github.com/golang/go github.com/hashicorp/consul

...