Granted the Scala language is much more complex than Go. To produce something useful it must be capable of an equivalent of parsing the AST.