forked from kyleconroy/tinygo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
285 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package user | ||
|
||
func lookupUser(username string) (*User, error) { | ||
panic("unimplemented: User.lookupUser()") | ||
} | ||
|
||
type User struct { | ||
// Uid is the user ID. | ||
// On POSIX systems, this is a decimal number representing the uid. | ||
// On Windows, this is a security identifier (SID) in a string format. | ||
// On Plan 9, this is the contents of /dev/user. | ||
Uid string | ||
// Gid is the primary group ID. | ||
// On POSIX systems, this is a decimal number representing the gid. | ||
// On Windows, this is a SID in a string format. | ||
// On Plan 9, this is the contents of /dev/user. | ||
Gid string | ||
// Username is the login name. | ||
Username string | ||
// Name is the user's real or display name. | ||
// It might be blank. | ||
// On POSIX systems, this is the first (or only) entry in the GECOS field | ||
// list. | ||
// On Windows, this is the user's display name. | ||
// On Plan 9, this is the contents of /dev/user. | ||
Name string | ||
// HomeDir is the path to the user's home directory (if they have one). | ||
HomeDir string | ||
} | ||
|
||
func Current() (*User, error) { | ||
panic("unimplemented: user.Current()") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.