clipboard_nocgo.go 551 B

12345678910111213141516171819202122232425
  1. //go:build !windows && !darwin && !linux && !cgo
  2. package clipboard
  3. import "context"
  4. func initialize() error {
  5. return errNoCgo
  6. }
  7. func read(t Format) (buf []byte, err error) {
  8. panic("clipboard: cannot use when CGO_ENABLED=0")
  9. }
  10. func readc(t string) ([]byte, error) {
  11. panic("clipboard: cannot use when CGO_ENABLED=0")
  12. }
  13. func write(t Format, buf []byte) (<-chan struct{}, error) {
  14. panic("clipboard: cannot use when CGO_ENABLED=0")
  15. }
  16. func watch(ctx context.Context, t Format) <-chan []byte {
  17. panic("clipboard: cannot use when CGO_ENABLED=0")
  18. }