From 6bc9fbefab375fa48b6fedf837e513c47b1b8342 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Fri, 14 Sep 2018 17:28:42 -0400 Subject: [PATCH] update clipboard and docs --- base/LICENSE | 21 +++++++++++++++++++++ clipboard/clipboard.go | 10 +++++++--- clipboard/cmd/gocopy/gocopy.go | 1 - 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 base/LICENSE diff --git a/base/LICENSE b/base/LICENSE new file mode 100644 index 0000000..e1fc0e9 --- /dev/null +++ b/base/LICENSE @@ -0,0 +1,21 @@ +The software is licensed under the terms of the MIT license. + +Copyright 2010 Michael Sanders, AE and the go-vgo Project Developers. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/clipboard/clipboard.go b/clipboard/clipboard.go index 5b68b33..f1b2186 100644 --- a/clipboard/clipboard.go +++ b/clipboard/clipboard.go @@ -2,7 +2,10 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package clipboard read/write on clipboard +/* + +Package clipboard read/write on clipboard +*/ package clipboard // import () @@ -17,6 +20,7 @@ func WriteAll(text string) error { return writeAll(text) } -// Unsupported might be set true during clipboard init, to help callers decide -// whether or not to offer clipboard options. +// Unsupported might be set true during clipboard init, +// to help callers decide whether or not to +// offer clipboard options. var Unsupported bool diff --git a/clipboard/cmd/gocopy/gocopy.go b/clipboard/cmd/gocopy/gocopy.go index f2b8262..115672a 100644 --- a/clipboard/cmd/gocopy/gocopy.go +++ b/clipboard/cmd/gocopy/gocopy.go @@ -8,7 +8,6 @@ import ( ) func main() { - out, err := ioutil.ReadAll(os.Stdin) if err != nil { panic(err)