ardnew / pasta

Cross-platform access to system clipboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-platform access to system clipboard

GoDoc

Go module and CLI utility that works on Windows, WSL, macOS and Linux.

See cmd/pasta for installing and using the CLI utility.

Install

go get github.com/ardnew/pasta

Usage

See godoc for detailed API.

  • Copy to clipboard
    clipboard.WriteAll("Hello World!")
  • Paste from clipboard
    text, err := clipboard.ReadAll()

License

MIT

About

Cross-platform access to system clipboard

License:MIT License


Languages

Language:Go 100.0%