package acl import "unsafe" // String returns a text representation of perms. func (perms Perm) String() string { buf := []byte{'-', '-', '-'} if perms&Read != 0 { buf[0] = 'r' } if perms&Write != 0 { buf[1] = 'w' } if perms&Execute != 0 { buf[2] = 'x' } return unsafe.String(unsafe.SliceData(buf), len(buf)) }