From adc54fb194a0b4327132ea44610a8e731bae4a3b Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 20 Jul 2021 12:56:48 +0200 Subject: [PATCH] Updated license years --- LICENSE | 2 +- doc.go | 2 +- enumerator/doc.go | 2 +- enumerator/enumerator.go | 2 +- enumerator/example_getdetailedportlist_test.go | 11 +++++++---- enumerator/usb_darwin.go | 2 +- enumerator/usb_darwin_go1.9.go | 2 +- enumerator/usb_freebsd.go | 2 +- enumerator/usb_linux.go | 2 +- enumerator/usb_ole_windows.go | 2 +- enumerator/usb_openbsd.go | 2 +- enumerator/usb_windows.go | 2 +- enumerator/usb_windows_test.go | 2 +- example_getportlist_test.go | 11 +++++++---- example_modem_bits_test.go | 13 ++++++++----- example_serialport_test.go | 11 +++++++---- example_test.go | 7 ++++--- portlist/portlist.go | 2 +- serial.go | 2 +- serial_darwin.go | 2 +- serial_darwin_386.go | 2 +- serial_darwin_64.go | 2 +- serial_freebsd.go | 2 +- serial_linux.go | 2 +- serial_linux_test.go | 2 +- serial_openbsd.go | 2 +- serial_unix.go | 2 +- serial_windows.go | 2 +- syscall_windows.go | 3 +-- unixutils/pipe.go | 8 +++++--- unixutils/select.go | 2 +- 31 files changed, 63 insertions(+), 49 deletions(-) diff --git a/LICENSE b/LICENSE index 1b8b73b..50ee44b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ -Copyright (c) 2014-2020, Cristian Maglie. +Copyright (c) 2014-2021, Cristian Maglie. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/doc.go b/doc.go index e54b87e..9705eb0 100644 --- a/doc.go +++ b/doc.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/doc.go b/enumerator/doc.go index c2329bf..818180d 100644 --- a/enumerator/doc.go +++ b/enumerator/doc.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/enumerator.go b/enumerator/enumerator.go index 552330e..6f0f32d 100644 --- a/enumerator/enumerator.go +++ b/enumerator/enumerator.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/example_getdetailedportlist_test.go b/enumerator/example_getdetailedportlist_test.go index 5b94e22..0d3bae4 100644 --- a/enumerator/example_getdetailedportlist_test.go +++ b/enumerator/example_getdetailedportlist_test.go @@ -1,14 +1,17 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package enumerator_test -import "fmt" -import "log" -import "go.bug.st/serial/enumerator" +import ( + "fmt" + "log" + + "go.bug.st/serial/enumerator" +) func ExampleGetDetailedPortsList() { ports, err := enumerator.GetDetailedPortsList() diff --git a/enumerator/usb_darwin.go b/enumerator/usb_darwin.go index 76f6ea0..fdf68c9 100644 --- a/enumerator/usb_darwin.go +++ b/enumerator/usb_darwin.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_darwin_go1.9.go b/enumerator/usb_darwin_go1.9.go index 3ec911d..167c44b 100644 --- a/enumerator/usb_darwin_go1.9.go +++ b/enumerator/usb_darwin_go1.9.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_freebsd.go b/enumerator/usb_freebsd.go index 3a43a85..739e222 100644 --- a/enumerator/usb_freebsd.go +++ b/enumerator/usb_freebsd.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_linux.go b/enumerator/usb_linux.go index 6133c63..bad2323 100644 --- a/enumerator/usb_linux.go +++ b/enumerator/usb_linux.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_ole_windows.go b/enumerator/usb_ole_windows.go index 9df6cdf..c02356a 100644 --- a/enumerator/usb_ole_windows.go +++ b/enumerator/usb_ole_windows.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Lars Knudsen, Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Lars Knudsen, Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_openbsd.go b/enumerator/usb_openbsd.go index 3a43a85..739e222 100644 --- a/enumerator/usb_openbsd.go +++ b/enumerator/usb_openbsd.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_windows.go b/enumerator/usb_windows.go index f8e86a5..b69e115 100644 --- a/enumerator/usb_windows.go +++ b/enumerator/usb_windows.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/enumerator/usb_windows_test.go b/enumerator/usb_windows_test.go index 94016fd..df5223a 100644 --- a/enumerator/usb_windows_test.go +++ b/enumerator/usb_windows_test.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/example_getportlist_test.go b/example_getportlist_test.go index 54b2dc3..fe3bf61 100644 --- a/example_getportlist_test.go +++ b/example_getportlist_test.go @@ -1,14 +1,17 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package serial_test -import "fmt" -import "log" -import "go.bug.st/serial" +import ( + "fmt" + "log" + + "go.bug.st/serial" +) func ExampleGetPortsList() { ports, err := serial.GetPortsList() diff --git a/example_modem_bits_test.go b/example_modem_bits_test.go index a10d828..298271e 100644 --- a/example_modem_bits_test.go +++ b/example_modem_bits_test.go @@ -1,15 +1,18 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package serial_test -import "log" -import "go.bug.st/serial" -import "fmt" -import "time" +import ( + "fmt" + "log" + "time" + + "go.bug.st/serial" +) func ExampleGetSetModemBits() { // Open the first serial port detected at 9600bps N81 diff --git a/example_serialport_test.go b/example_serialport_test.go index 91b8c79..544cd42 100644 --- a/example_serialport_test.go +++ b/example_serialport_test.go @@ -1,14 +1,17 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package serial_test -import "fmt" -import "log" -import "go.bug.st/serial" +import ( + "fmt" + "log" + + "go.bug.st/serial" +) func ExampleSerialPort_SetMode() { port, err := serial.Open("/dev/ttyACM0", &serial.Mode{}) diff --git a/example_test.go b/example_test.go index 5447199..63866bb 100644 --- a/example_test.go +++ b/example_test.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // @@ -8,10 +8,11 @@ package serial_test import ( "fmt" + "log" "strings" + + "go.bug.st/serial" ) -import "log" -import "go.bug.st/serial" // This example prints the list of serial ports and use the first one // to send a string "10,20,30" and prints the response on the screen. diff --git a/portlist/portlist.go b/portlist/portlist.go index cbf4c8c..a198b81 100644 --- a/portlist/portlist.go +++ b/portlist/portlist.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial.go b/serial.go index 08f227a..3e4f3b1 100644 --- a/serial.go +++ b/serial.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_darwin.go b/serial_darwin.go index 8b27a82..ea1b99f 100644 --- a/serial_darwin.go +++ b/serial_darwin.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_darwin_386.go b/serial_darwin_386.go index fd637df..850f6b7 100644 --- a/serial_darwin_386.go +++ b/serial_darwin_386.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_darwin_64.go b/serial_darwin_64.go index 885f114..7f72e66 100644 --- a/serial_darwin_64.go +++ b/serial_darwin_64.go @@ -2,7 +2,7 @@ // +build amd64 arm64 // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_freebsd.go b/serial_freebsd.go index b648b52..ca1ef76 100644 --- a/serial_freebsd.go +++ b/serial_freebsd.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_linux.go b/serial_linux.go index 1a447d8..e4a2d45 100644 --- a/serial_linux.go +++ b/serial_linux.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_linux_test.go b/serial_linux_test.go index 01e3923..2eda7f3 100644 --- a/serial_linux_test.go +++ b/serial_linux_test.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_openbsd.go b/serial_openbsd.go index ad68957..e9d71a4 100644 --- a/serial_openbsd.go +++ b/serial_openbsd.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_unix.go b/serial_unix.go index 143818e..541660c 100644 --- a/serial_unix.go +++ b/serial_unix.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/serial_windows.go b/serial_windows.go index 6b6d0ee..af9a620 100644 --- a/serial_windows.go +++ b/serial_windows.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // diff --git a/syscall_windows.go b/syscall_windows.go index ccd9508..baa4deb 100644 --- a/syscall_windows.go +++ b/syscall_windows.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // @@ -25,4 +25,3 @@ package serial //sys getOverlappedResult(handle syscall.Handle, overlapEvent *syscall.Overlapped, n *uint32, wait bool) (err error) = GetOverlappedResult //sys purgeComm(handle syscall.Handle, flags uint32) (err error) = PurgeComm - diff --git a/unixutils/pipe.go b/unixutils/pipe.go index a6be332..f187ce9 100644 --- a/unixutils/pipe.go +++ b/unixutils/pipe.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // @@ -8,8 +8,10 @@ package unixutils -import "syscall" -import "fmt" +import ( + "fmt" + "syscall" +) // Pipe represents a unix-pipe type Pipe struct { diff --git a/unixutils/select.go b/unixutils/select.go index 40b591c..e945ec1 100644 --- a/unixutils/select.go +++ b/unixutils/select.go @@ -1,5 +1,5 @@ // -// Copyright 2014-2020 Cristian Maglie. All rights reserved. +// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //