In go there is the function MatchString which can be used to match a string with a regex, however, the function returns true if a substring that matches the regex is found.
Is there a way/similar function that returns true only when the whole of the string is matched (e.g. if I have [0-9]{2} and my string is 213, the return value should be false). ? or should this be done from the regex string itself ?