Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 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)
}
```