diff options
Diffstat (limited to 'sd_login/logind_user.go')
-rw-r--r-- | sd_login/logind_user.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sd_login/logind_user.go b/sd_login/logind_user.go index 8d20d4b..fe908e0 100644 --- a/sd_login/logind_user.go +++ b/sd_login/logind_user.go @@ -20,6 +20,10 @@ import ( type UserID int +func (uid UserID) isValid() bool { + return uid >= 0 +} + type UserState int const ( |