Updated license years

This commit is contained in:
Cristian Maglie
2021-07-20 12:56:48 +02:00
parent 9cebdc6aa3
commit adc54fb194
31 changed files with 63 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
Copyright (c) 2014-2020, Cristian Maglie. Copyright (c) 2014-2021, Cristian Maglie.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

2
doc.go
View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
package enumerator_test package enumerator_test
import "fmt" import (
import "log" "fmt"
import "go.bug.st/serial/enumerator" "log"
"go.bug.st/serial/enumerator"
)
func ExampleGetDetailedPortsList() { func ExampleGetDetailedPortsList() {
ports, err := enumerator.GetDetailedPortsList() ports, err := enumerator.GetDetailedPortsList()

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
package serial_test package serial_test
import "fmt" import (
import "log" "fmt"
import "go.bug.st/serial" "log"
"go.bug.st/serial"
)
func ExampleGetPortsList() { func ExampleGetPortsList() {
ports, err := serial.GetPortsList() ports, err := serial.GetPortsList()

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
package serial_test package serial_test
import "log" import (
import "go.bug.st/serial" "fmt"
import "fmt" "log"
import "time" "time"
"go.bug.st/serial"
)
func ExampleGetSetModemBits() { func ExampleGetSetModemBits() {
// Open the first serial port detected at 9600bps N81 // Open the first serial port detected at 9600bps N81

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
package serial_test package serial_test
import "fmt" import (
import "log" "fmt"
import "go.bug.st/serial" "log"
"go.bug.st/serial"
)
func ExampleSerialPort_SetMode() { func ExampleSerialPort_SetMode() {
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{}) port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
@@ -8,10 +8,11 @@ package serial_test
import ( import (
"fmt" "fmt"
"log"
"strings" "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 // 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. // to send a string "10,20,30" and prints the response on the screen.

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -2,7 +2,7 @@
// +build amd64 arm64 // +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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 getOverlappedResult(handle syscall.Handle, overlapEvent *syscall.Overlapped, n *uint32, wait bool) (err error) = GetOverlappedResult
//sys purgeComm(handle syscall.Handle, flags uint32) (err error) = PurgeComm //sys purgeComm(handle syscall.Handle, flags uint32) (err error) = PurgeComm

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
@@ -8,8 +8,10 @@
package unixutils package unixutils
import "syscall" import (
import "fmt" "fmt"
"syscall"
)
// Pipe represents a unix-pipe // Pipe represents a unix-pipe
type Pipe struct { type Pipe struct {

View File

@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //