Source File
termux.go
Belonging Package
github.com/zyedidia/clipper
package clipperimport ()// termux-clipboard for Android Termuxtype Termux struct{}func ( *Termux) () error {return verify(, "termux-clipboard-get", "termux-clipboard-set")}func ( *Termux) ( string) ([]byte, error) {var *exec.Cmdswitch {case RegClipboard:= exec.Command("termux-clipboard-get")default:return nil, &ErrInvalidReg{Reg: ,}}return .Output()}func ( *Termux) ( string, []byte) error {var *exec.Cmdswitch {case RegClipboard:= exec.Command("termux-clipboard-set")default:return &ErrInvalidReg{Reg: ,}}return write(, )}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |