Command line client for Write.as https://write.as/apps/cli
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
554 B

  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. // Package clipboard read/write on clipboard
  5. package clipboard
  6. // ReadAll read string from clipboard
  7. func ReadAll() (string, error) {
  8. return readAll()
  9. }
  10. // WriteAll write string to clipboard
  11. func WriteAll(text string) error {
  12. return writeAll(text)
  13. }
  14. // Unsupported might be set true during clipboard init, to help callers decide
  15. // whether or not to offer clipboard options.
  16. var Unsupported bool