I want to implement logic branching depending on whether the input is a string or a backtick.
If it's a string I'll do a simple comparison of the input to an expected value, but if the input is a backtick (e.g. `foo\d{1,3}`) then I want to check my expected value against the input using something like regexp.MatchString instead.
So my question is: can you type assert against an input to check if it's a backtick or a standard string type?
Update: or even more specifically, I want to use a string function if I'm dealing with a string type and a regex function if I'm dealing with a regexp type
Thanks!