clipboard.go 574 B

12345678910111213141516171819202122232425
  1. // Copyright 2013 @atotto. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. /*
  5. Package clipboard read/write on clipboard
  6. */
  7. package clipboard
  8. // import ()
  9. // ReadAll read string from clipboard
  10. func ReadAll() (string, error) {
  11. return readAll()
  12. }
  13. // WriteAll write string to clipboard
  14. func WriteAll(text string) error {
  15. return writeAll(text)
  16. }
  17. // Unsupported might be set true during clipboard init,
  18. // to help callers decide whether or not to
  19. // offer clipboard options.
  20. var Unsupported bool