Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for findGroupName (0.11 sec)

  1. src/os/user/lookup_unix_test.go

    				t.Errorf("findGroupName(%s): got unexpected error %v", tt.name, terr)
    			}
    		} else {
    			if err != nil {
    				t.Fatalf("findGroupName(%s): got unexpected error %v", tt.name, err)
    			}
    			if got.Gid != tt.gid {
    				t.Errorf("findGroupName(%s): got gid %v, want %s", tt.name, got.Gid, tt.gid)
    			}
    			if got.Name != tt.name {
    				t.Errorf("findGroupName(%s): got name %s, want %s", tt.name, got.Name, tt.name)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  2. src/os/user/lookup_unix.go

    	if v, err := readColonFile(r, matchGroupIndexValue(id, 2), 3); err != nil {
    		return nil, err
    	} else if v != nil {
    		return v.(*Group), nil
    	}
    	return nil, UnknownGroupIdError(id)
    }
    
    func findGroupName(name string, r io.Reader) (*Group, error) {
    	if v, err := readColonFile(r, matchGroupIndexValue(name, 0), 3); err != nil {
    		return nil, err
    	} else if v != nil {
    		return v.(*Group), nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top