Skip to content

Commit 9dc3a90

Browse files
authored
Merge pull request #198 from kolyshkin/user-118
user: bump Go to 1.18, modernize
2 parents 37e0dac + 869c0be commit 9dc3a90

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

user/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/moby/sys/user
22

3-
go 1.17
3+
go 1.18
44

55
require golang.org/x/sys v0.1.0
66

user/lookup_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
2-
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
32

43
package user
54

user/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ type IDMap struct {
5656
Count int64
5757
}
5858

59-
func parseLine(line []byte, v ...interface{}) {
59+
func parseLine(line []byte, v ...any) {
6060
parseParts(bytes.Split(line, []byte(":")), v...)
6161
}
6262

63-
func parseParts(parts [][]byte, v ...interface{}) {
63+
func parseParts(parts [][]byte, v ...any) {
6464
if len(parts) == 0 {
6565
return
6666
}

user/user_fuzzer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build gofuzz
2-
// +build gofuzz
32

43
package user
54

0 commit comments

Comments
 (0)