github.com/puellanivis/breton@v0.2.16/lib/os/user/user_windows.go (about)

     1  // Code generated by Uses Names with Id instead of ID. DO NOT EDIT.
     2  // The above line skips linter because we use functions with the name Id instead of ID, but the linter refuses to allow this.
     3  // Copyright 2011 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Package user allows user account lookups by name or id.
     8  package user
     9  
    10  import (
    11  	"os/user"
    12  )
    13  
    14  var (
    15  	userImplemented  = true // set to false by lookup_stubs.go's init
    16  	groupImplemented = true // set to false by lookup_stubs.go's init
    17  )
    18  
    19  // User represents a user account.
    20  type User = user.User
    21  
    22  // Group represents a grouping of users.
    23  //
    24  // On POSIX systems Gid contains a decimal number representing the group ID.
    25  type Group = user.Group
    26  
    27  // UnknownUserIdError is returned by LookupId when a user cannot be found.
    28  type UnknownUserIdError = user.UnknownUserIdError
    29  
    30  // UnknownUserError is returned by Lookup when
    31  // a user cannot be found.
    32  type UnknownUserError = user.UnknownUserError
    33  
    34  // UnknownGroupIdError is returned by LookupGroupId when
    35  // a group cannot be found.
    36  type UnknownGroupIdError = user.UnknownGroupIdError
    37  
    38  // UnknownGroupError is returned by LookupGroup when
    39  // a group cannot be found.
    40  type UnknownGroupError = user.UnknownGroupError