Skip to content
Permalink
Branch: master
Commits on Mar 14, 2019
  1. Add go.mod file

    Carpetsmoker committed Mar 14, 2019
Commits on Mar 7, 2019
  1. Use correct path to executable

    Carpetsmoker committed Mar 7, 2019
    It worked correctly when using the full path (i.e. "~/go/bin/foo") but
    not when using a shell PATH lookup (i.e. "foo"). In that case,
    os.Args[0] is "foo" and filepath.Abs("foo") is just the cwd + /foo,
    which isn't correct.
    
    Luckily, Go has a handy helper function which works on most (though not
    all) platforms.
    
    Also remove unused interface.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.