(uid uint32)
| 63 | } |
| 64 | |
| 65 | func GetUsername(uid uint32) string { |
| 66 | usr, err := user.LookupId(strconv.Itoa(int(uid))) |
| 67 | if err != nil { |
| 68 | return "" |
| 69 | } |
| 70 | return usr.Username |
| 71 | } |
| 72 | |
| 73 | func GetGroup(gid uint32) string { |
| 74 | usr, err := user.LookupGroupId(strconv.Itoa(int(gid))) |
no outgoing calls
no test coverage detected