But if you remove the reference to regexp/syntax in the top-level main.go, then it also works fine (with no change to the plugin code itself).
On Tuesday, 5 September 2023 at 20:05:58 UTC+1 Howard C. Shaw III wrote: > It looks to me like the regexp package has an func init() that never gets > called when Re is only imported in a plugin, which is why it works when you > uncomment the lines that use regexp in the main package. > > Howard > -- 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9d61d856-8630-41bd-823d-079101305dacn%40googlegroups.com.