Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 189 Bytes
// +build go1.7
package sys
import "os/user"
func groupLookup(gid string) (string, error) {
g, err := user.LookupGroupId(gid)
if err != nil {
return "", err
}
return g.Name, nil
}