Make go spec independent of filetype detection