gitlab.com/evatix-go/core@v1.3.55/chmodhelper/chmodins/ExpandRwxFullStringToOwnerGroupOther.go (about) 1 package chmodins 2 3 func ExpandRwxFullStringToOwnerGroupOther(rwxFullString string) (*RwxOwnerGroupOther, error) { 4 err := GetRwxFullLengthError(rwxFullString) 5 6 if err != nil { 7 return nil, err 8 } 9 10 owner := rwxFullString[1:4] 11 group := rwxFullString[4:7] 12 other := rwxFullString[7:10] 13 14 return NewRwxOwnerGroupOther( 15 owner, 16 group, 17 other), nil 18 }