I've trying to find out a way to construct string
data from a compiled *regexp.Regexp
with given interface{}
array. For example:
re := regexp.MustCompile(`(?P<word>\w+)\s*(?P<num>\d+)`)
I want to construct a string
from the structure found in re
by a string
and a int
data which may be received as interface{}
.
Can't figure out how I can do that in Go. Please help me out.
Thanks in advance.