Debian Codegraph @

clipboard/clipboard_other_platforms.go

raw
1 //go:build !darwin && !linux && !windows && cgo
2 // +build !darwin,!linux,!windows,cgo
3
4 package clipboard
5
6 import (
7 "github.com/juju/errors"
8 )
9
10 var InitErr = errors.New("clipboard is only supported on Linux, MacOS and Windows")
11
12 // WriteText is a wrapper around clipboard.Write with FmtText; it exists so
13 // that we can avoid compiling it on unsupported platforms (e.g. FreeBSD) and
14 // still have nerdlog working (without clipboard support).
15 func WriteText(value []byte) {
16 // no-op
17 }