Updated license years
This commit is contained in:
2
LICENSE
2
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
|
||||
|
||||
2
doc.go
2
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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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{})
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user