match

Package match implements a State Machine that can match a string against multiple regular expressions simultaneously.

Go Reference