clipboard/clipboard_nocgo.go
raw| 1 | //go:build !cgo |
| 2 | // +build !cgo |
| 3 | |
| 4 | package clipboard |
| 5 | |
| 6 | import ( |
| 7 | "github.com/juju/errors" |
| 8 | ) |
| 9 | |
| 10 | var InitErr = errors.New("nerdlog was built with CGO_ENABLED=0") |
| 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 | } |