Skip to content

Commit 8a16cf4

Browse files
committed
user: bump Go to 1.18, modernize
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 37e0dac commit 8a16cf4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

0 commit comments

Comments
 (0)