MCPcopy Index your code
hub / github.com/atotto/clipboard

github.com/atotto/clipboard @v0.1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.4 ↗ · + Follow
23 symbols 58 edges 9 files 3 documented · 13% 141 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
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:

  • http://godoc.org/github.com/atotto/clipboard

Notes:

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

TODO:

  • Clipboard watcher(?)

Commands:

paste shell command:

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

copy shell command:

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

Core symbols most depended-on inside this repo

ReadAll
called by 7
clipboard.go
WriteAll
called by 7
clipboard.go
waitOpenClipboard
called by 2
clipboard_windows.go
getPasteCommand
called by 1
clipboard_darwin.go
getCopyCommand
called by 1
clipboard_darwin.go
getPasteCommand
called by 1
clipboard_unix.go
getCopyCommand
called by 1
clipboard_unix.go
readAll
called by 1
clipboard_unix.go

Shape

Function 23

Languages

Go100%

Modules by API surface

clipboard_unix.go5 symbols
clipboard_test.go4 symbols
clipboard_darwin.go4 symbols
clipboard_windows.go3 symbols
clipboard_plan9.go2 symbols
clipboard.go2 symbols
example_test.go1 symbols
cmd/gopaste/gopaste.go1 symbols
cmd/gocopy/gocopy.go1 symbols

For agents

$ claude mcp add clipboard \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact