Go\'s re2 syntax document says that the any character(.) matches any character, including newline (s=true). However I wrote a simple program whose result showed that the any
Like most other (all?) regex engines, dot does not match newlines unless you add the "dot all" flag (?s) to the regex.
(?s)
I tested this using your link and it worked.