go-trash is a cross-platform package to move files to trash. OSX, Windows and Linux (tested on Ubuntu) are supported.
go get https://github.com/laurent22/go-trash
-
On Windows, it builds successfully with MinGW, in MSYS shell.
-
On OSX and Linux, it should build as is.
http://godoc.org/github.com/laurent22/go-trash
MIT