We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Lookup{,Group}
Group
1 parent f7c0466 commit 7b7601dCopy full SHA for 7b7601d
src/os/user/user.go
@@ -39,3 +39,21 @@ type User struct {
39
func Current() (*User, error) {
40
return nil, errors.New("user: Current not implemented")
41
}
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