Discover Packages
github.com/arrufat/clipboard
package
module
Version:
v0.1.5
Opens a new window with list of versions in this module.
Published: Sep 11, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2 modules, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
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:
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
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package clipboard read/write on clipboard
package main
import (
"fmt"
"github.com/arrufat/clipboard"
)
func main() {
clipboard.WriteAll("日本語")
text, _ := clipboard.ReadAll()
fmt.Println(text)
}
Output:
日本語
Unsupported might be set true during clipboard init, to help callers decide
whether or not to offer clipboard options.
ReadAll read string from clipboard
WriteAll write string to clipboard
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.