This should fix fatih/vim-go#251 (GoDef and non unix line endings).

It does that by taking the current fileformat into account.