os/user: add stubs for Lookup{,Group} and Group

This commit is contained in:
diamondburned
2024-05-28 13:53:45 -07:00
committed by Ayke
parent f7c0466f78
commit 7b7601d77c
+18
View File
@@ -39,3 +39,21 @@ type User struct {
func Current() (*User, error) {
return nil, errors.New("user: Current not implemented")
}
// Lookup always returns an error.
func Lookup(username string) (*User, error) {
return nil, errors.New("user: Lookup not implemented")
}
// Group represents a grouping of users.
//
// On POSIX systems Gid contains a decimal number representing the group ID.
type Group struct {
Gid string // group ID
Name string // group name
}
// LookupGroup always returns an error.
func LookupGroup(name string) (*Group, error) {
return nil, errors.New("user: LookupGroup not implemented")
}