Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion user/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/moby/sys/user

go 1.17
go 1.18

require golang.org/x/sys v0.1.0

Expand Down
1 change: 0 additions & 1 deletion user/lookup_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris

package user

Expand Down
4 changes: 2 additions & 2 deletions user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ type IDMap struct {
Count int64
}

func parseLine(line []byte, v ...interface{}) {
func parseLine(line []byte, v ...any) {
parseParts(bytes.Split(line, []byte(":")), v...)
}

func parseParts(parts [][]byte, v ...interface{}) {
func parseParts(parts [][]byte, v ...any) {
if len(parts) == 0 {
return
}
Expand Down
1 change: 0 additions & 1 deletion user/user_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build gofuzz
// +build gofuzz

package user

Expand Down
Loading