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

It does that by taking the current fileformat into account.
Merge pull request #253 from alexaandru/251-GoDef-wrong-line-ending-for-non-unix-files

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