Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/go-clipfile
Extract file paths from macOS clipboard in Go language.
https://github.com/afeiship/go-clipfile
clipboard file mac macos osascript osx path pbcopy
Last synced: 22 days ago
JSON representation
Extract file paths from macOS clipboard in Go language.
- Host: GitHub
- URL: https://github.com/afeiship/go-clipfile
- Owner: afeiship
- Created: 2019-03-13T04:40:30.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T11:03:07.000Z (about 2 months ago)
- Last Synced: 2024-11-09T11:29:28.470Z (about 2 months ago)
- Topics: clipboard, file, mac, macos, osascript, osx, path, pbcopy
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-clipfile
> Extract file paths from macOS clipboard in Go language.## installation
```sh
go get -u github.com/afeiship/go-clipfile
```## usage
```go
package mainimport (
"fmt"
"github.com/afeiship/go-clipfile"
)func main() {
path := clipfile.GetPath()
if path == "" {
fmt.Println("Failed to get file path")
}
fmt.Println(path)
}
```