/pasta

Cross-platform access to system clipboard

Primary LanguageGoMIT LicenseMIT

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