Skip to content

Commit 1807c96

Browse files
committed
gha: update to go1.17 and gofmt
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent b5cb846 commit 1807c96

15 files changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: 1.16.x
20+
go-version: 1.17.x
2121
id: go
2222

2323
- name: Setup Go binary path

console_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
/*

console_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux || solaris || zos || freebsd
12
// +build linux solaris zos freebsd
23

34
/*

console_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
12
// +build darwin freebsd linux netbsd openbsd solaris
23

34
/*

console_zos.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build zos
12
// +build zos
23

34
/*
@@ -32,7 +33,7 @@ func NewPty() (Console, string, error) {
3233
var f File
3334
var err error
3435
var slave string
35-
for i := 0;; i++ {
36+
for i := 0; ; i++ {
3637
ptyp := fmt.Sprintf("/dev/ptyp%04d", i)
3738
f, err = os.OpenFile(ptyp, os.O_RDWR, 0600)
3839
if err == nil {

pty_freebsd_cgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build freebsd && cgo
12
// +build freebsd,cgo
23

34
/*

pty_freebsd_nocgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build freebsd && !cgo
12
// +build freebsd,!cgo
23

34
/*

pty_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || linux || netbsd || openbsd || solaris
12
// +build darwin linux netbsd openbsd solaris
23

34
/*

tc_freebsd_cgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build freebsd && cgo
12
// +build freebsd,cgo
23

34
/*

tc_freebsd_nocgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build freebsd && !cgo
12
// +build freebsd,!cgo
23

34
/*

0 commit comments

Comments
 (0)