Skip to content

Commit 7b7601d

Browse files
diamondburnedaykevl
authored andcommitted
os/user: add stubs for Lookup{,Group} and Group
1 parent f7c0466 commit 7b7601d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/os/user/user.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,21 @@ type User struct {
3939
func Current() (*User, error) {
4040
return nil, errors.New("user: Current not implemented")
4141
}
42+
43+
// Lookup always returns an error.
44+
func Lookup(username string) (*User, error) {
45+
return nil, errors.New("user: Lookup not implemented")
46+
}
47+
48+
// Group represents a grouping of users.
49+
//
50+
// On POSIX systems Gid contains a decimal number representing the group ID.
51+
type Group struct {
52+
Gid string // group ID
53+
Name string // group name
54+
}
55+
56+
// LookupGroup always returns an error.
57+
func LookupGroup(name string) (*Group, error) {
58+
return nil, errors.New("user: LookupGroup not implemented")
59+
}

0 commit comments

Comments
 (0)