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.
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
// 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
// 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
// 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
// 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()

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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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()

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
// 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

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
// 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{})

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
// 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.

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
// 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
// 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
// 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
// license that can be found in the LICENSE file.
//

View File

@@ -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.
//

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
// 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
// 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
// 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
// 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
// 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
// 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
// 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

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
// 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 {

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
// license that can be found in the LICENSE file.
//