Watch
1
0
Fork
You've already forked golang-github-gopasspw-clipboard
0
No description
  • Go 92.4%
  • Makefile 7.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-08 19:09:27 +02:00
.github/workflows Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
cmd Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
debian Releasing fastforward version 0.0~git20260524.6b387ae-2~ffwd13+u1. 2026-07-08 19:09:27 +02:00
.gitignore Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
.golangci.yml Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_darwin.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_darwin_test.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_plan9.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_test.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_unix.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
clipboard_windows.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
example_test.go Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
go.mod Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
go.sum Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
LICENSE Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
Makefile Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00
README.md Adding upstream version 0.0~git20260524.6b387ae. 2026-07-08 19:08:48 +02:00

Clipboard access for Go

GoDoc

Provide copying and pasting to the Clipboard for Go.

Installation

go get github.com/gopasspw/clipboard

Platforms

We aim to support all platforms that Go supports, as long as they provide a clipboard.

The following platforms are know to work:

  • Darwin (macOS)
  • Windows
  • Linux, Unix (requires 'xclip', 'xsel' or 'wl-clipboard' commands to be installed)

Commands

paste shell command:

go get github.com/gopasspw/clipboard/cmd/gopaste
# example:
gopaste > document.txt

copy shell command:

go get github.com/gopasspw/clipboard/cmd/gocopy
# example:
cat document.txt | gocopy

License and Credit

This package is licensed under the BSD 3-Clause License. It is a detached fork of github.com/atotto/clipboard. Since the origional repository has been inactive for over 10 years, we decided to fork it and add some features and bug fixes.

This repository is maintained to support the needs of gopass password manager. It is not an exact drop-in replacement, but we encourage everyone to use it as a replacement for the original package.