atotto/clipboard

clipboard for golang

Go

1,379

85 commits

updated Mar 26, 2026

See the code

README

Build Status

GoDoc

Clipboard for Go

Provide copying and pasting to the Clipboard for Go.

Build:

$ go get github.com/atotto/clipboard

Platforms:

  • OSX
  • Windows 7 (probably work on other Windows)
  • Linux, Unix (requires 'xclip' or 'xsel' command to be installed)

Document:

Notes:

  • Text string only
  • UTF-8 text encoding only (no conversion)

TODO:

  • Clipboard watcher(?)

Commands:

paste shell command:

$ go install github.com/atotto/clipboard/cmd/gopaste@latest
$ # example:
$ gopaste > document.txt

copy shell command:

$ go install github.com/atotto/clipboard/cmd/gocopy@latest
$ # example:
$ cat document.txt | gocopy
clipboard
go

Significant stargazers

haruki7049

80 followers · starred Jul 2026

Zachary Yedidia

975 followers · starred Mar 2016

Lonny Wong

61 followers · starred Jul 2024

Kenzo Wada

52 followers · starred Oct 2025

atotto/clipboard

clipboard for golang

Go

1,379

85 commits

updated Mar 26, 2026

See the code

README

Build Status

GoDoc

Clipboard for Go

Provide copying and pasting to the Clipboard for Go.

Build:

$ go get github.com/atotto/clipboard

Platforms:

  • OSX
  • Windows 7 (probably work on other Windows)
  • Linux, Unix (requires 'xclip' or 'xsel' command to be installed)

Document:

Notes:

  • Text string only
  • UTF-8 text encoding only (no conversion)

TODO:

  • Clipboard watcher(?)

Commands:

paste shell command:

$ go install github.com/atotto/clipboard/cmd/gopaste@latest
$ # example:
$ gopaste > document.txt

copy shell command:

$ go install github.com/atotto/clipboard/cmd/gocopy@latest
$ # example:
$ cat document.txt | gocopy
clipboard
go

Significant stargazers

haruki7049

80 followers · starred Jul 2026

Zachary Yedidia

975 followers · starred Mar 2016

Lonny Wong

61 followers · starred Jul 2024

Kenzo Wada

52 followers · starred Oct 2025

Languages

Go

100.0%