Extract file paths from macOS clipboard in Go language.
go get -u github.com/afeiship/go-clipfile
package main
import (
"fmt"
"github.com/afeiship/go-clipfile"
)
func main() {
path := clipfile.GetPath()
if path == "" {
fmt.Println("Failed to get file path")
}
fmt.Println(path)
}