I just recently found out that user.Current() doesn't work when cross-compiling.  AFAICT you would dereference a nil pointer in that case here.

(Can we somehow set up cross-compilation test cases with Travis?)